OriginProtocol / origin-js

We've moved to a monorepo: https://github.com/OriginProtocol/origin
MIT License
81 stars 33 forks source link

Category / subCategory indexing #560

Open sparrowDom opened 5 years ago

sparrowDom commented 5 years ago

When we are indexing a listing it would be helpful and increase search quality if we were to add category and subCategory names to the indexing text. This way for example a Ferrari listed in Cars and Trucks subCategory would be returned in a cars search query.

A challenge is how do we translate category/subCategory fields.

One proposed solution is that we take into account the current locale selected by the user (located in the left part of the footer in the DApp) and at index time translate category/subcategory to that language and add that to listing's index.