-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.28: Smart cropping #1687
Comments
Hey @guimachiavelli, about the "smart cropping" names, it's not an official name chosen by the product team but an identifier for the core team. |
Thanks for the clarification, @ManyTheFish |
@ManyTheFish, just to be sure: what is the cropping behaviour for single-word queries (e.g. |
we take the sentence context in consideration 😄 |
Brilliant, thanks! |
1730: v0.28: Smart cropping r=guimachiavelli a=guimachiavelli Closes #1687 Co-authored-by: gui machiavelli <[email protected]> Co-authored-by: gui machiavelli <[email protected]>
1707: v0.28 r=guimachiavelli a=guimachiavelli This is a staging PR for all changes related to Meilisearch v0.28. Please avoid making changes directly to this PR; instead, create new child branches based off this one. Closes #1687, #1688, #1691, #1692, #1693, #1694, #1699, #1700, #1701, #1702, #1703, #1704, #1706, #1722, #1727, #561 Co-authored-by: gui machiavelli <[email protected]> Co-authored-by: gui machiavelli <[email protected]> Co-authored-by: Tommy Melvin <[email protected]> Co-authored-by: Maryam Sulemani <[email protected]> Co-authored-by: Maryam <[email protected]>
Currently, when using
attributesToCrop
, Meilisearch will start cropping at the first occurrence of any search term. If a user searches for'white car'
, cropping of'the woman in the white shirt drove a white car'
will be centred on the first'white'
, even though the second occurrence includes both terms.With v0.28, a new cropping algorithm will instead centre cropping so it includes the highest possible number of search terms. We are calling this "smart cropping."
References
PR: meilisearch/milli#483
Issue on core: meilisearch/meilisearch#2299
SME: @ManyTheFish
The text was updated successfully, but these errors were encountered: