v0.8.1-optional-words-beta.0 🔗
Pre-release
Pre-release
This version makes this package compatible with Meilisearch v0.29.0-optional-words.beta.1 🎉
In this version, you can try out the new optionalWords
search parameter we are testing out. For complete information on the feature, please refer to this guide.
🚀 Enhancements
- Feature prototype: define strategy on optional words during search #817
Usage
optionalWords
gives you the possibility to chose how Meilisearch should handle the presence of multiple query words.
For example, if your query is Hello world
by default Meilisearch returns documents containing either both Hello
and world
or documents that only contain hello
. This is the last
strategy, where words are stripped from the right.
The other strategy is none
, where both hello
and worlds
must be present in a document for it to be returned.
import { instantMeiliSearch } from '@meilisearch/instant-meilisearch'
const searchClient = instantMeiliSearch(
host,
apiKey,
{
optionalWords: 'none' // default last
}
)
Thanks again to @bidoubiwa ! 🎉