openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
660 stars 389 forks source link

Enable biasing or filtering autosuggest values based on field #1251

Open teolemon opened 6 years ago

teolemon commented 6 years ago

Enable biasing or filtering autosuggest values based on field

Eg: I want the common nutrients for the Mineral water category I want the common labels for wines

This is to improve the autocomplete experience on mobile.

Thanks @TaciteOFF for the idea.

aleene commented 5 years ago

We could add category fields to the nutriments taxonomy (preferred?), or nutriments fields to the category taxonomy. This would allow to filter the nutriments shown.

Add a field like category:en:wine:en:yes or category:en:mineral_waters:en:yes

hangy commented 5 years ago

I was wondering a few days ago, if machine learning (multiclass classifier?) based on the other taxonomy fields could help with better autosuggest. That way, we could train the AI based on existing product data, and wouldn't need to tag every autosuggest field manually …