Hits with documents containing all the query words #211
Locked
curquiza
started this conversation in
Feedback & Feature Proposal
Replies: 2 comments
-
In the meantime, it is possible to have this behavior by wrapping each term with a phrase search expression. e.g. The limitation of the phrase search is that typographical errors are not taken into account. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Locked in favor of #255 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Motivation
Currently, the search engine returns documents containing all the query words but also documents containing one of the query words.
The users might want to disable this behavior and only get documents containing all the query words only.
See meilisearch/meilisearch#1694.
Solution
A solution could be to add a
optionalWords
settings (or another name), set totrue
by default. The default behavior is to return documents containing all the query words but also documents containing one of the query words.If set to
false
only the documents containing all the words of the query are returned.Technical
This setting is already implemented on Milli's side, it just has to be exposed on MeiliSearch's side. The implementation of this feature should be quick.
Beta Was this translation helpful? Give feedback.
All reactions