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

Support for by default field boosting #240

Open alexgarel opened 2 months ago

alexgarel commented 2 months ago

At mapping definition time, ElasticSearch enables defining a "boost" on a field that can be applied on each query.

We could have a "boost" attribute on fields in configuration to support this.

For example in Open Food Facts, we could boost product_name and categories relative to other fields.