openfoodfacts / search-a-licious

🍊🔎 A pluggable search service for large collections of objects (like Open Food Facts)
https://search.openfoodfacts.org
GNU Affero General Public License v3.0
10 stars 6 forks source link

Exact match is not displayed first in autosuggest #256

Open raphael0202 opened 3 weeks ago

raphael0202 commented 3 weeks ago

On the demo (http://search.localhost:8000/static/off.html), when typing "viande", we have the following autocomplete results for categories:

The "viandes" category was not returned, even if it is an exact match. Exact matches should always come first.