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
6 stars 4 forks source link

Filter suggestions in search bar #154

Open alexgarel opened 3 weeks ago

alexgarel commented 3 weeks ago

As user type in the searchbar, he gets suggestions of filters that might help him search.

Eg. "Appl" will suggest ingredient Apple and category Apple.

Image

As a value is selected, it is added to the corresponding facet. It does not necessarily launch search immediately.

It uses the taxonomy_autocomplete API.

There are new properties on search-bar to control the behavior: