Remove the default search wildcard and check the behaviour in Elastic #2248
Labels
feature
use for describing a new feature to develop
filters & search
Linked to search results and filtering engine
solved
use to identify issue that has been solved (must be linked to the solving PR)
Milestone
Prerequisites
Description
Hello !
I'm wondering whether there is a reason for adding a trailing wildcard on the elasticsearch "query_string" generated by a search for the frontend search bar.
Because of it, exact matches end up with a much lower score than less relevant documents where the keyword is embedded within text.
In some cases, the exact match (for instance a country entity) won't even be returned by the query results.
From my tests, removing the trailing wildcard from the query string gives the same results overall.
Environment
Reproducible Steps
Steps to create the smallest reproducible scenario:
The text was updated successfully, but these errors were encountered: