Dynamic Search Rules #884
Replies: 1 comment 5 replies
|
I've been using Dynamic Search Rules in production for about two weeks now, and it's been working great so far! That said, to fully match our use case we'd need a few additional query condition types:
Our use case: we run a pet supplies store and want to pin specific products to the top when they're temporarily on sale. For example, a query condition like Other than that, we've been really enjoying MeiliSearch and this experimental feature. Happy to share more about our setup or show the project in action if that's useful, feel free to reach out. Is there any chance |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Enables dynamic search rules feature
Hey everyone,
For the next Meilisearch release, we are introducing Dynamic Search Rules as an experimental feature.
Feature abstract
Dynamic Search Rules let you promote specific documents for specific searches.
A rule can match:
When a rule matches, it can pin chosen documents at fixed positions in the results.
This is useful when you want more control over important searches. For example:
Pinned documents still respect the search request. If a pinned document is filtered out, it is not inserted into the results.
How to enable the feature in Meilisearch?
Call this route:
You can check that the feature is enabled by calling:
curl \ -X GET 'http://localhost:7700/experimental-features'How to use the feature?
Dynamic Search Rules use the
/dynamic-search-rulesroutes:PATCH /dynamic-search-rules/{uid}to create or update a ruleGET /dynamic-search-rules/{uid}to fetch a ruleDELETE /dynamic-search-rules/{uid}to delete a rulePOST /dynamic-search-rulesto list rulesWhat can the feature do today?
Today, rules support:
containsisEmptystartandendThis first version focuses on pinning.
Example
The example below promotes billing help content when the query contains
invoice:What is not supported yet?
This first version does not support:
We would especially like feedback on these points.
What is an experimental feature?
Why is this feature not stable yet?
We still need feedback on the shape of the feature.
In particular, we want to better understand:
When will the feature be stable?
We do not know yet.
We want to learn from real use cases first, then improve the feature over the next releases.
We would love your feedback
If you try Dynamic Search Rules, please tell us:
Questions, feedback, and use cases are all very welcome.
All reactions