Giter VIP home page Giter VIP logo

wear-it-with's Introduction

Wear it with proposal

Product tags

Now product document has a tags array. This array describe the product, for instance we have a product that has the following tags array:

{
  tags: ["woman", "jacket", "leather", ...]
}

Similarity query

To find similar products in order to fill similar products list we run a query that resolve the intersection of the tags arrays, between the current product (the one that we are viewing its detail) and the others in the data base. Product that has more matches goes first and the ones that has less matches goes last. Lets call this query similarity query.

I think that to fill the wear it with list we could run some queries like the similarity query, between current product, a set of wear it with rules, and the products in the database.

Wear it with rules collection

We've been talking about to create an admin tool to define links between products, to declare which product could be wear with other. I propose to link tags instead of products. I think this is a better approach because you are linking "kinds of product" instead of each single product, so a new product get linked automatically when it is tagged. These links or rules could be represented as a JSON collection:

[
  { with: ["woman", "leather", "jacket"], "wear": ["jeans"] },
  { with: ["woman", "leather", "jacket"], "wear": ["leather", "nubuck", "sandals"] },
  { with: ["woman", "leather", "jacket"], "wear": ["silver", "bracelet"] },
  
  ...
]

Wear it with list

We could run the similarity query between the current product tags array and the with array of the rules, and get the first N rules. Then we have a set of N wear tags arrays. In order to obtain the wear it with list for the current product, we could run the similarity query again between each wear tags array and the tags arrays of the products in the data base. Then we have N query results, so we could get the first product of each query result, and fill the wear it with list.

wear-it-with's People

Watchers

James Cloos avatar Agustin Lascialandare avatar

Forkers

benjamine

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.