Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Fix(smart-crop): Ensure that matches are all highlighted #592

Merged
merged 2 commits into from
Jul 21, 2022

Conversation

ManyTheFish
Copy link
Member

In the case of only 1 query word was matching in an attribute,
and this same word was matching several times in the crop window of the same attribute,
then only the first match was highlighted.
Now we ensure that the computed "best matches interval" contains all the words that match in the same crop window.

related to meilisearch/meilisearch#2627

In the case of only 1 query word was matching in an attribute,
and this same word was matching several times in the crop window of same attribute,
then only the first match was highlighted.
Now we ensure that the computed "best matches interval" contains all the words that match in the same crop window.

related to meilisearch/meilisearch#2627
@ManyTheFish ManyTheFish requested review from curquiza and loiclec July 20, 2022 11:48
@ManyTheFish ManyTheFish marked this pull request as ready for review July 20, 2022 11:49
Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget the label 😄

Also, can you change the version name in this PR at the same time?

@ManyTheFish ManyTheFish added the no breaking The related changes are not breaking (DB nor API) label Jul 20, 2022
@ManyTheFish ManyTheFish requested a review from curquiza July 20, 2022 13:40
Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for me, but I'm not the one who is able to say the code is ok 😄

Copy link
Contributor

@loiclec loiclec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it looks good!

@loiclec
Copy link
Contributor

loiclec commented Jul 21, 2022

bors merge

@bors
Copy link
Contributor

bors bot commented Jul 21, 2022

@bors bors bot merged commit 132558b into release-v0.31.2 Jul 21, 2022
@bors bors bot deleted the fix-smart-crop-highlight branch July 21, 2022 09:49
bors bot added a commit that referenced this pull request Aug 3, 2022
599: fix: Remove whitespace trimming during document id validation r=ManyTheFish a=ManyTheFish

fix #592


related to meilisearch/meilisearch#2640


Co-authored-by: ManyTheFish <many@meilisearch.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
no breaking The related changes are not breaking (DB nor API)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants