Replies: 2 comments 3 replies
-
Hello 👋 We have just released v0.29.0rc1, which is a release candidate of v0.29.0 🔥 It introduces a new search parameter named For now, it accepts 2 strategies:
How to use it: curl \
-X POST 'http://localhost:7700/indexes/movies/search' \
-H 'Content-Type: application/json' \
--data-binary '{ "q": "american ninja", "matchingStrategy": "all" }' Binaries are attached to the release, or you can use the docker image: docker run -it --rm \
-p 7700:7700 \
getmeili/meilisearch:v0.29.0rc1 Let us know about any bugs or feedback! 😄 It would be really helpful. FYI, the official v0.29.0 release will be available on 3rd October. |
Beta Was this translation helpful? Give feedback.
-
Hello, this is only my feedback as a proxy user, so take it with a grain of salt. I find the name It makes me think that I have to pass a boolean and so doesn't naturally make me guess that there is an enum behind it. Even if at first there is only If we use a name like that, we should probably rename Regarding the |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
For more context, check out the previous discussions on this subject:
According to the user feedback we got, we want to extend the user's possibilities to customize the relevancy behavior during the search.
Currently, Meilisearch returns documents containing all the query words as the most relevant documents, so at the top of the results. Then, below, it "removes" the last query words to make it optional and retrieves documents containing all the query words except the last one it removed, etc...
This prototype introduces a new search parameter named
optionalWords
allowing the users to customize the word matching policy chosen between several modes.✨ We welcome everyone to install the prototype and try it out for a bit. Making the prototype available before the official release means the feedback you give us will go a long way toward ensuring this new feature is helpful and easy to use. ✨
Installation of the prototype
You must use Docker to install this prototype:
docker run -it --rm \ -p 7700:7700 \ -v $(pwd)/meili_data:/meili_data \ getmeili/meilisearch:v0.29.0-optional-words.beta.2
We have also created custom versions of
meilisearch-js
andinstant-meilisearch
compatible with this prototype. We recommend installing these as project dependencies:API Reference
A new search parameter has been introduced:
optionalWords
. Its values are:last
:The documents containing ALL the query words (i.e. in the
q
parameter) are returned first by Meilisearch.If Meilisearch doesn't have enough documents to fit the requested
limit
, it iteratively ignores the query words from the last typed word to the first typed word until thelimit
of requested documents is reached.none
:Only the documents containing ALL the query words (i.e. in the
q
parameter) are returned by Meilisearch.If Meilisearch doesn't have enough documents to fit the requested
limit
, it returns the documents found without reaching thelimit
.How to use
cURL
meilisearch-js
instant-meilisearch
Bonus
We also introduced another mode for
optionalWords
you might want to test: theany
value. With this mode, all the query words are optional, no matter their order in the query (i.e. theq
parameter).none
if we go into delivery phase.Feedback
We are actively looking for feedback from our users. Let us know about your experience using the prototype in this discussion—your suggestions help us make this new feature better and easier to use. ❤️
Core: @ManyTheFish
Integration: @bidoubiwa
Beta Was this translation helpful? Give feedback.
All reactions