v1.58.0 🕸️
- Introduce a new
wordPosition.enabledparameter to control whether word positions are computed when indexing documents, by @Kerollmops in https://github.com/meilisearch/meilisearch/pull/6708. Computing them often takes a lot of time, and skipping them can speed up the indexing time a lot. However, disabling the word position feature:- Skip the
wordPositionranking rule. We advise removing this ranking rule from the list. - Because the
Attributeranking rule is a compound ranking rule betweenAttributeRankandwordPosition, the latter will be skipped. - Makes the
Exactnessranking rule unable to perfectly match the content of a field and the query words.
- Skip the
- Fix support for concatenation in typo tolerance by @ManyTheFish in https://github.com/meilisearch/meilisearch/pull/6740
- Example: for the query
spider manthe matchsider manwas considered better thanspiderman. Now they are considered equivalent.
- Example: for the query
- Upgrade to Rust v1.100 by @dureuill in https://github.com/meilisearch/meilisearch/pull/6739
- Replace missing macos-14 runner with macos-15 by @curquiza in https://github.com/meilisearch/meilisearch/pull/6744
- Improve the licensing situation with the OpenLDAP license by @Kerollmops in https://github.com/meilisearch/meilisearch/pull/6732
- Switch to ubuntu 24.04 in prevision of GH retirement of 22.04 by @dureuill in https://github.com/meilisearch/meilisearch/pull/6738
Full Changelog: https://github.com/meilisearch/meilisearch/compare/v1.57.0...v1.58.0
v1.57.0 🎯
[!NOTE]
Using this feature requires the Enterprise Edition. Enterprise Edition features are also available on Meilisearch Cloud.
Allows seeing the state of dynamic search rules (DSR) as if all pending DSR update tasks had been processed.
A "pending" task is a task that is either enqueued or currently processing.
The new GET /dynamic-search-rules/{:ruleUid}/target route returns the "target" state of the DSR, that is, an object with the following fields:
current, dynamic search rule object ornull: the current values of the dynamic search rules, ornullif the dynamic search rule doesn't exist yettarget, dynamic search rule object ornull: the field of the dynamic search rules that will be modified by currently pending tasks, ornullif the dynamic search rule will be deleted after all pending tasks have been processedneedsProcessing, boolean,trueif at least one pending task pertaining to this dynamic search rule existstaskUids, array of task uids, list of the pending tasks pertaining to the dynamic search rule
The existing POST /dynamic-search-rules route used to list the dynamic search rules has a new showTarget parameter, an optional boolean. When present and true, showTarget modifies the response in the following way:
- new global fields in the response:
needsProcessing: boolean,trueif at least one DSR update task existstaskUids, array of task uids, list of the pending DSR update taskstotalRuleCount, number, current total number of rules regardless of the filter. This field is different fromtotalin thattotalindicates the total number of rules matching the optional filter passed in the body parameters ofPOST /dynamic-search-rulestargetTotalRuleCount, number, total number of rules that will exist after processing all pending DSR update tasks
- each rule returned in results has an additional
needsProcessingboolean set totrueif at least one pending DSR update task applies to this rule.
Creating a new rule
Checking its target state before the task is processed
// GET /dynamic-search-rules/scale-rule/target
// response
{
"current": null, // rule did not previously exist
"needsProcessing": true, // rule needs processing
"target": { // target state matches the update
"actions": {
"scale": [
{
"ids": ["372631"],
"weight": 2.0
}
]
},
"active": true,
"conditions": {
"query": {
"words": "HERO SUPER"
}
}
},
"taskUids": [6] // id of the task that will create the rule
}
Listing the rules before the new rule has been created
// POST /dynamic-search-rules
// request body
{
"showTarget": true
}
// response
{
"results": [
{
"actions": {},
"active": true,
"conditions": {
"time": {
"end": "2032-12-31T09:50:12Z",
"start": "2023-01-01T09:50:12Z"
}
},
"lastUpdatedAt": "[lastUpdatedAt]",
"needsProcessing": false, // existing rule doesn't need processing
"uid": "skips-action-without-selector-id"
},
{
"actions": {
"pin": [
{
"position": 0,
"id": "15242",
"indexUid": "movies"
}
]
},
"active": true,
"conditions": {
"query": {
"words": "super hero"
}
},
"lastUpdatedAt": "[lastUpdatedAt]",
"needsProcessing": false, // existing rule doesn't need processing
"uid": "existing-rule-to-migrate"
}
],
"limit": 20,
"offset": 0,
"total": 2, // this might be lower depending on current filter
"needsProcessing": true, // some task needs processing
"totalRuleCount": 2, // always represents all existing rules
"targetTotalRuleCount": 3, // one more because one rule is pending creation
"taskUids": [6] // task that will create the rule
}
Checking its target state after the task has been processed
// GET /dynamic-search-rules/scale-rule/target
// response
{
"current": {
"actions": {
"scale": [
{
"ids": [
"372631"
],
"weight": 2.0
}
]
},
"active": true,
"conditions": {
"query": {
"words": "HERO SUPER"
}
}
},
"target": {}, // no further change pending
"taskUids": [],
"needsProcessing": false
}
Listing the rules after the new rule has been created
// POST /dynamic-search-rules
// request body
{
"showTarget": true
}
// response
{
"limit": 20,
"offset": 0,
"results": [
{
"actions": {
"pin": [
{
"position": 0,
"id": "15242",
"indexUid": "movies"
}
]
},
"active": true,
"conditions": {
"query": {
"words": "super hero"
}
},
"lastUpdatedAt": "[lastUpdatedAt]",
"needsProcessing": false,
"uid": "existing-rule-to-migrate"
},
{
"actions": {
"scale": [
{
"ids": ["372631"],
"weight": 2.0
}
]
},
"active": true,
"conditions": {
"query": {
"words": "HERO SUPER"
}
},
"lastUpdatedAt": "[lastUpdatedAt]",
"needsProcessing": false,
"uid": "scale-rule"
},
{
"actions": {},
"active": true,
"conditions": {
"time": {
"end": "2032-12-31T09:50:12Z",
"start": "2023-01-01T09:50:12Z"
}
},
"lastUpdatedAt": "[lastUpdatedAt]",
"needsProcessing": false,
"uid": "skips-action-without-selector-id"
}
],
"total": 3,
"totalRuleCount": 3,
"targetTotalRuleCount": 3, // agrees with totalRuleCount
"needsProcessing": false, // target state has been reached
"taskUids": [] // always empty when no processing needed
}
Updating the conditions of an existing rule
// PATCH /dynamic-search-rules/existing-rule-to-migrate
// request body
{
"conditions": {
"query": {
"words": "SUPER hero"
}
}
}
Checking the target state of the rule before the task has been processed
// GET /dynamic-search-rules/existing-rule-to-migrate/target
// response
{
"current": { // rule already exists
"actions": {
"pin": [
{
"id": "15242",
"indexUid": "movies",
"position": 0
}
]
},
"active": true,
"conditions": {
"query": {
"words": "super hero"
}
}
},
"needsProcessing": true,
"target": {
"conditions": {
"query": {
"words": "SUPER hero" // only modified values appear in target
}
}
},
"taskUids": [7] // id of the task that will update the rule
}
Listing the rules before the rule has been updated
// POST /dynamic-search-rules
// request body
{
"showTarget": true
}
// response
{
"results": [
{
"actions": {
"pin": [
{
"position": 0,
"id": "15242",
"indexUid": "movies"
}
]
},
"active": true,
"conditions": {
"query": {
"words": "super hero" // still indicates the current value, check the details GET target route to get the details
}
},
"lastUpdatedAt": "[lastUpdatedAt]",
"needsProcessing": true, // this task will be updated
"uid": "existing-rule-to-migrate"
},
{
"actions": {
"scale": [
{
"ids": ["372631"],
"weight": 2.0
}
]
},
"active": true,
"conditions": {
"query": {
"words": "HERO SUPER"
}
},
"lastUpdatedAt": "[lastUpdatedAt]",
"needsProcessing": false,
"uid": "scale-rule"
},
{
"actions": {},
"active": true,
"conditions": {
"time": {
"end": "2032-12-31T09:50:12Z",
"start": "2023-01-01T09:50:12Z"
}
},
"lastUpdatedAt": "[lastUpdatedAt]",
"needsProcessing": false,
"uid": "skips-action-without-selector-id"
}
],
"limit": 20,
"offset": 0,
"total": 3,
"totalRuleCount": 3,
"targetTotalRuleCount": 3, // agrees with totalRuleCount
"needsProcessing": true, // at least one rule will be updated
"taskUids": [7] // id of the task that will update any DSR
}
Checking its target state after the task has been processed
// GET /dynamic-search-rules/existing-rule-to-migrate/target
// response
{
"current": {
"actions": {
"scale": [
{
"ids": [
"372631"
],
"weight": 2.0
}
]
},
"active": true,
"conditions": {
"query": {
"words": "HERO SUPER"
}
}
},
"target": {}, // no change
"taskUids": [], // no task remaining to update the rule
"needsProcessing": false // no processing remaining for this rule
}
Listing the rules after the rule has been updated
// POST /dynamic-search-rules
// request body
{
"showTarget": true
}
// response
{
"results": [
{
"actions": {
"pin": [
{
"position": 0,
"id": "15242",
"indexUid": "movies"
}
]
},
"active": true,
"conditions": {
"query": {
"words": "SUPER hero" // indicates the modified value
}
},
"lastUpdatedAt": "[lastUpdatedAt]",
"needsProcessing": false, // already updated
"uid": "existing-rule-to-migrate"
},
{
"actions": {
"scale": [
{
"ids": ["372631"],
"weight": 2.0
}
]
},
"active": true,
"conditions": {
"query": {
"words": "HERO SUPER"
}
},
"lastUpdatedAt": "[lastUpdatedAt]",
"needsProcessing": false,
"uid": "scale-rule"
},
{
"actions": {},
"active": true,
"conditions": {
"time": {
"end": "2032-12-31T09:50:12Z",
"start": "2023-01-01T09:50:12Z"
}
},
"lastUpdatedAt": "[lastUpdatedAt]",
"needsProcessing": false,
"uid": "skips-action-without-selector-id"
}
],
"limit": 20,
"offset": 0,
"total": 3,
"totalRuleCount": 3,
"targetTotalRuleCount": 3, // agrees with totalRuleCount
"needsProcessing": false, // no pending update
"taskUids": [] // empty list of tasks
}
By @dureuill in https://github.com/meilisearch/meilisearch/pull/6715
Fixes a v1.54 regression in federated search where interleaving relevancy and sort rules would skip every other rule. For instance, a sort ranking rule could be skipped if placed after a relevancy rule.
By @dureuill in https://github.com/meilisearch/meilisearch/pull/6731
Upgrade macos runner following removal by GH
By @dureuill in https://github.com/meilisearch/meilisearch/pull/6734
- Fix version comment of the pinned Homebrew bump action by @curquiza in https://github.com/meilisearch/meilisearch/pull/6718
Full Changelog: https://github.com/meilisearch/meilisearch/compare/v1.56.2...v1.57.0
v1.56.2 🐫
Meilisearch v1.56.2 removes a leftover debug statement that could impede performance and was a regression from v1.56.1. Upgrading from previous versions of Meilisearch is strongly recommended.
It also updates several dependencies.
- remove unwanted log & warn about future unwanted dbg by @dureuill in https://github.com/meilisearch/meilisearch/pull/6725
- Bump docker/build-push-action from 6.19.2 to 7.4.0 by @dependabot[bot] in https://github.com/meilisearch/meilisearch/pull/6712
- Bump docker/login-action from 4.2.0 to 4.7.0 by @dependabot[bot] in https://github.com/meilisearch/meilisearch/pull/6714
- Fix outdated CA certificates in the Docker images by @curquiza in https://github.com/meilisearch/meilisearch/pull/6705
- Bump actions/download-artifact from 8.0.1 to 8.0.2 by @dependabot[bot] in https://github.com/meilisearch/meilisearch/pull/6713
- Bump dart-lang/setup-dart from 1.7.2 to 1.8.1 by @dependabot[bot] in https://github.com/meilisearch/meilisearch/pull/6711
- Bump mongodb to v9.0 in rails SDKs tests by @Strift in https://github.com/meilisearch/meilisearch/pull/6716
Full Changelog: https://github.com/meilisearch/meilisearch/compare/v1.56.1...v1.56.2
v1.55.1 🔭
Meilisearch v1.55.1 introduces important security fixes. Upgrading from v1.55.0 and earlier is recommended for all users.
See the release notes for Meilisearch v1.56.1 for details.
Full Changelog: https://github.com/meilisearch/meilisearch/compare/v1.55.0...v1.55.1
v1.56.1 🐫
Meilisearch v1.56.1 introduces important security fixes. Updating from v1.56.0 is recommended for all users.
-
Fix issue with ranking scores greater than 1 by @dureuill in https://github.com/meilisearch/meilisearch/pull/6703
-
Make sure that all nested fields are inserted in field id map by @dureuill in https://github.com/meilisearch/meilisearch/pull/6700
-
Fixes a panic when modifying the list of searchable attributes after an existing document has been updated to insert new nested fields.
-
Existing databases encountering this issue can be fixed by adding a new document containing the new nested fields.
-
Fixes #6636 and fixes #6657
-
- Fix the memory consumption and runtime of long filters by @dureuill in https://github.com/meilisearch/meilisearch/pull/6695
- Bump rustls from 0.23.45 to 0.23.46 by @dependabot[bot] in https://github.com/meilisearch/meilisearch/pull/6706
- Clamp map_size to page size when removing tasks during snapshot creation by @mavrodikomsd-eng in https://github.com/meilisearch/meilisearch/pull/6699
- Reduce the number of cargo flaky iterations to 60 by @dureuill in https://github.com/meilisearch/meilisearch/pull/6689
- Fix Debian CI by @curquiza in https://github.com/meilisearch/meilisearch/pull/6698
- Bump mislav/bump-homebrew-formula-action from 3.6 to 4.2 by @dependabot[bot] in https://github.com/meilisearch/meilisearch/pull/6567
- Bump actions/setup-node from 6.5.0 to 7.1.0 by @dependabot[bot] in https://github.com/meilisearch/meilisearch/pull/6569
- Bump actions/setup-python from 6.3.0 to 7.1.0 by @dependabot[bot] in https://github.com/meilisearch/meilisearch/pull/6570
- Bump actions/checkout from 5.1.0 to 7.0.1 by @dependabot[bot] in https://github.com/meilisearch/meilisearch/pull/6568
- @mavrodikomsd-eng made their first contribution in https://github.com/meilisearch/meilisearch/pull/6699
Full Changelog: https://github.com/meilisearch/meilisearch/compare/v1.56.0...v1.56.1
v1.56.0 🐫
- Introduce
sampledCountto compute the facet distribution by @Kerollmops in https://github.com/meilisearch/meilisearch/pull/6649 It is a new sorting option when retrieving the facet distribution. It is less precise than bycountbut provides a rough estimate of the facet distribution. Note that the count of documents for each facet is exhaustive but the list of facets is not and some facets that would have been listed by using the bycountmethod have been ignored/skipped. - Give up indexing when the embedder can't handle the load by @ManyTheFish in https://github.com/meilisearch/meilisearch/pull/6681
- An adaptive strategy for rate limiting: For small usage with few documents, we accept a slow embedder service, and for big usage with updates containing thousands of documents, Meilisearch will give up early
- A better outage handling, where Meilisearch will give up early if the embedder server is unavailable for too long
- Support the
Retry-Afterheader when the value is in seconds, avoiding useless retries in a short timespan
- Optimization of general search performance by @itsamine27 in https://github.com/meilisearch/meilisearch/pull/6571
- Fix wrong binary quantization state after deleting embedders by @dureuill in https://github.com/meilisearch/meilisearch/pull/6679
- Improve code correctness by using the latest version of heed by @Kerollmops in https://github.com/meilisearch/meilisearch/pull/6687
- Update README by @mayasssh in https://github.com/meilisearch/meilisearch/pull/6692
- Disallow AI Contributions by @Kerollmops in https://github.com/meilisearch/meilisearch/pull/6684
- Fix empty request body section in the settings API reference by @curquiza in https://github.com/meilisearch/meilisearch/pull/6678
- Bump rustls from 0.23.43 to 0.23.45 by @dependabot[bot] in https://github.com/meilisearch/meilisearch/pull/6672
v1.55.0 🔭
Apply an inline-specified dynamic search rule to a search query.
Search query objects in the following endpoints now have an additional, optional inlineRule parameter.
When present and not null, then Meilisearch will check if query satisfies the conditions of the dynamic search rule specified in inlineRule, and if so will apply the actions of the rule as if it had been sent to the PATCH /dynamicSearchRule/{:uid} endpoint.
Additionally, if the Meili-Include-Metadata header is present in the request with the value true, then the metadata in the response will contain information about whether the conditions of the inline rule were satisfied and if not why.
Meilisearch Cloud will use this backend feature to implement a preview UI for dynamic search rules.
Using inlineRule requires Meilisearch Enterprise Edition and the dynamicSearchRules experimental feature.
By @dureuill in https://github.com/meilisearch/meilisearch/pull/6669
- There is a new
InlineRuleobject with the following field:uid, string, mandatory: unique ID of the rule. If there is already a rule with this id, then the inline rule will replace the existing rule for the duration of this search query.active, boolean, optional, defaults totrue: whether the rule is active. The actions of an inactive inline rule never apply to the search, but its conditions are still checkedconditions:RuleConditionsobject, identical to theconditionsfield in the body ofPATCH /dynamic-search-rules/{:uid}actions:RuleActionsobject, identical to theactionsfield in the body ofPATCH /dynamic-search-rules/{:uid}precedence: integer, optional, identical to theprecedencefield in the body ofPATCH /dynamic-search-rules/{:uid}
- The
POST /indexes/{:indexUid}/searchbody has an additional, optional (defaults tonull)inlineRulefield which is anInlineRuleobject. - In the
POST /multi-searchbody, the objects inside thequeriesarray have an additional, optional (defaults tonull)inlineRulefield which is anInlineRuleobject.
Passing a search rule specific to the user making the request
// POST /indexes/movies/search
{
"q": "super hero",
"inlineRule": {
"uid": "user-likes-batman",
"actions": {
"scale": [
{
// filter recent Batman movies
"filter": "hero = batman AND release_time = fresh",
"weight": 1.2 // moderate relevancy boost
}
]
}
}
}
Previewing the effect of a search rule
// POST /multi-search -H 'Meili-Include-Metadata: true`
{
"queries": [
// base query without inline rule
{
"q": "fashion",
"filter": "color = blue AND category = shirt"
},
// same query with inline rule
{
"q": "fashion",
"filter": "color = blue AND category = shirt",
"inlineRule": {
"uid": "special-sales",
"conditions": {
"query": {
"words": "pants",
},
"filter": {
"values": {
"color": "yellow",
"stock_intent": "destock"
}
}
}
}
}
]
}
Response:
{
// [ ... ] some other fields
"results": [
// results without the rule
{
"hits": [ ... ] // documents returned without the rule
},
// results with the rule
{
// [...] some other fields
"hits": [...], // documents returned with the rule. Here the same, because the conditions of the rules are not satisfied
"metadata": {
// [...] some other fields
"inlineRuleConditionOutcomes": {
"satisfiesActiveCondition": true,
"satisfiesQueryWordsCondition": {
"missingWord": "pants"
},
"satifiesFilterCondition": {
"missingConstraintOnField": {
"field": "stock_intent"
},
"unmetConstraintOnField":
"field": "color"
}
}
}
}
]
}
When setting showPerformanceDetails to true in a search request, the response's performanceDetails will now display an entry for the facet distribution computation.
New trace entries
Request
curl -X POST 'http://localhost:7700/indexes/movies/search' \
-H 'Content-Type: application/json' \
-d '{
"q": "batman",
"facets": ["genres"],
"showPerformanceDetails": true,
"limit": 3
}'
Response
{
"hits": [
# ...
],
"query": "batman",
"processingTimeMs": 4,
"limit": 3,
"offset": 0,
"estimatedTotalHits": 68,
"facetDistribution": {
"genres": {
#...
}
},
"facetStats": {},
"requestUid": "01a12f80-0e1b-7632-b4f3-c8d4914048c9",
"performanceDetails": {
"wait in queue": "68.58µs",
"preprocess filters > prepare": "100.25µs",
"preprocess filters": "100.42µs",
"process > prepare": "115.54µs",
"process > send to remote": "102.71µs",
"process > execute local > load field ids map": "30.88µs",
"process > execute local > query[0] > tokenize query": "265.38µs",
"process > execute local > query[0] > evaluate query": "890.96µs",
"process > execute local > query[0] > keyword ranking": "425.04µs",
"process > execute local > query[0]": "2.95ms",
"process > execute local > pin hits": "9.92µs",
"process > execute local > format": "94.62µs",
"process > execute local > facet distribution > compute facet distribution": "315.75µs",
"process > execute local > facet distribution > compute facet stats": "27.71µs",
"process > execute local > facet distribution": "432.62µs",
"process > execute local": "3.81ms",
"process > wait for remote": "50.96µs",
"process > merge": "905.62µs",
"process": "5.07ms"
}
}
Three additional steps:
"process > execute local > facet distribution > compute facet distribution": "315.75µs",
"process > execute local > facet distribution > compute facet stats": "27.71µs",
"process > execute local > facet distribution": "432.62µs",
By @ManyTheFish in https://github.com/meilisearch/meilisearch/pull/6644
Documents containing raw unicode codepoints (e.g. \u03b1) would cause a panic at search time when formatting results for highlighting when using some segmenters.
A failure at the segmenter's level no longer causes a panic.
By @dureuill in https://github.com/meilisearch/meilisearch/pull/6673
[!IMPORTANT]
This fix modifies the relevancy of the engine in some circumstances. This is allowed as per our back-compatiblity policy.
To avoid a performance sink when using the rankingScoreThreshold parameter in a search, Meilisearch now guarantees that the search will stop after evaluating the first document whose score is below the threshold. Previously Meilisearch would try to evaluate more documents, which could lead to evaluating all documents in the database, causing a very long search time.
By @ManyTheFish in https://github.com/meilisearch/meilisearch/pull/6661
[!WARNING]
This fix introduces a breaking change in the Meilisearch API. Because the previous behavior would corrupt the embeddings in the database, this is allowed by our back-compatibility policy.
Since the exact value of embeddings is not retained when the embedder is configured for binary quantize embeddings, disabling the binary quantization on an index is not allowed.
Unfortunately, an oversight in the API allowed to accidentally disable binary quantization by passing binaryQuantization: null in a setting update. This now results in an error.
By @dureuill in https://github.com/meilisearch/meilisearch/pull/6656
- Maintainability: replace some
unreachable!()code paths with static typing by @dureuill in https://github.com/meilisearch/meilisearch/pull/6670 - Add GHA to enforce benchmarks label on each PR by @curquiza in https://github.com/meilisearch/meilisearch/pull/6663
- Add link to MCP guide in generated API reference by @Strift in https://github.com/meilisearch/meilisearch/pull/6650
- Add link to agentic search demo & fix links by @Strift in https://github.com/meilisearch/meilisearch/pull/6655
- Small changes to CONTRIBUTING.md by @dureuill in https://github.com/meilisearch/meilisearch/pull/6668
- Bump actions/setup-java from 5.7.0 to 6.0.1 by @dependabot[bot] in https://github.com/meilisearch/meilisearch/pull/6662
- Fix OpenAPI docs by @curquiza in https://github.com/meilisearch/meilisearch/pull/6667
- CI: Fix flaky tests by @dureuill in https://github.com/meilisearch/meilisearch/pull/6674
Full Changelog: https://github.com/meilisearch/meilisearch/compare/v1.54.3...v1.55.0
v1.52.4
This release contains an important stability fix for Meilisearch. Update from v1.52.3 is recommended.
See https://github.com/meilisearch/meilisearch/pull/6658 for details
v1.53.3
This release contains an important stability fix for Meilisearch. Update from v1.53.2 is recommended.
See https://github.com/meilisearch/meilisearch/pull/6658 for details
v1.54.3
This release contains an important stability fix for Meilisearch. Update from v1.54.2 is recommended.
See https://github.com/meilisearch/meilisearch/pull/6658 for details