Apply highlight and matches
only on attributes that are searchable
#296
Replies: 2 comments 5 replies
-
For now, Today, it is possible to apply highlighting only on searchableAttributes. To do so, However This needs more thought. I have the impression that matches are mostly used to override In the idea of understanding users better, why do you use |
Beta Was this translation helpful? Give feedback.
-
I came across this issue today, I was tempted to suggest using |
Beta Was this translation helpful? Give feedback.
-
Following meilisearch/meilisearch#1864
Currently, even if attributes are not set in
searchableAttributes
, the highlight andmatches
still apply on them.Example using MeiliSearch v0.23.1
Set only
title_fr
assearchableAttributes
Do the following search
Here is the following response:
Despite only
title_fr
is considered as searchable,title_en
is also highlighted and"matched".
We might consider only applying highlight/matches to the searchable attributes.
Currently, if the document is retrieved, all the query words are highlighted. But they don't represent the words that really made the document match.
We might need more user feedback to understand what is the most expected behavior.
Beta Was this translation helpful? Give feedback.
All reactions