Experimental feature: Score details #674
Replies: 6 comments 13 replies
-
Thanks for the new feature! As discussed separately with @macraig . I'd be interested in being able to filter against the scores (preferably on a per rule basis) too. Currently we're able to do this separately/after the fact, but as a result aren't able to use pagination. |
Beta Was this translation helpful? Give feedback.
-
I am using this feature, I personally like the aggregate score. For it to be useful to me, in production, I need to be able to set a threshold. For example I may want to filter out all results that have a score below .49. I can do it after the search but as @jr-cobweb mentioned, it means that total hits and facet distribution is incorrect. |
Beta Was this translation helpful? Give feedback.
-
@macraig thanks for the response. I wanted to follow up with an example if I could. I have either deleted all the data or replaced with asterisks to hide identifying or brand information but I left the relevant bits with the score. Now to preface... I have tweaked and tweaked and tweaked search and in a lot of cases I get what I want, the example Im about to show you however has been bothering me and when I turned on aggregate score it validated my assumptions. On my site, when I search for tshirt, ill get the 8 results I expect, when I search for t-shirt I get 1 result. Thats fine I guess as I ranked tags higher than title and one test item has the tag t-shirt. I can fix that with synonyms, but when I search for the plural 't-shirts' I get the 8 results Im expecting and an 24 more. The best i can figure is the '-' but why? Anyhow, after weeks of tweaking and testing I couldnt figure it out and then I came across the scoring. And this is what I saw, the score drops from .65 to .08 after 8 results and everything is below .08. Why anything that poorly ranked be returned??? So, the scoring shows that search has the same opinion about the quality of the results as I do and yet they get returned. Why is this a big deal? When a user can sort or price or how new the product is or on the facets, an item that was at the bottom of the list (because it shouldnt be there at all) can now wind up at the top. { |
Beta Was this translation helpful? Give feedback.
-
it's quite useful feature! thanks the team! |
Beta Was this translation helpful? Give feedback.
-
Opened stabilization PR to stabilize this feature in v1.7: meilisearch/meilisearch#4389 🚀 |
Beta Was this translation helpful? Give feedback.
-
Hi everyone 👋 🐇 v1.7 has been released and we're happy to announce that score details are now considered stable 🎉 Check out our documentation for usage instructions. |
Beta Was this translation helpful? Give feedback.
-
Meilisearch v1.3 (released July 31) introduces score computations:
showRankingScore
search query parametershowRankingScoreDetails
search query parameter. The detailed scores are an experimental feature in Meilisearch v1.3Experimental feature abstract
Passing
"showRankingScoreDetails" : true
to a query from the/indexes/{:indexUid}/search
or/multi-search
routes injects a new_rankingScoreDetails
field in each returned document.This field has for value a JSON object representing the details of the score calculation for each of the ranking rules involved in the ranking of the document.
The various details of this object is given in the related specification.
How to use the feature?
PATCH /experimental-features
passing"scoreDetails": true
."showRankingScoreDetails": true
in the search query parameters._rankingScoreDetails
field with the value described above.What is an experimental feature
By enabling this feature via the
/experimental-features
route, you opt into the following:_rankingScoreDetails
JSON object can change and contain different fields in the future._rankingScoreDetails
can be removed in the future.You can use this feature in production, but be prepared to update your code from one version to the next.
Why is this feature not stable yet?
The
_rankingScoreDetails
object is expansive and adds a lot of surface to the API. We don't want to stabilize all the details of the various ranking rules instantly.🗣️ You are welcome to give feedback about the score details or ask any question on its usage; we are eager to collect feedback on the feature
When will the feature potentially be stable?
The target version is Meilisearch v1.7 (released March 11th).
Stabilization PR: meilisearch/meilisearch#4389
Beta Was this translation helpful? Give feedback.
All reactions