You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a query contains a hard separator like Batman: the dark knight returns, part 1, then documents with the title Batman: the dark knight returns, part 1 are not matched with the strategy MatchesFull, while they should.
This is due to multiple factors
hard separators are not given a correct position when parsing queries
the field_id_word_count_docids stores only the word count up to 10.
the field_id_word_count_docids stores the max position instead of the number of words. This max position takes into account the offset of hard separators and so we easily get higher than 10.
Hello @dureuill
Thanks for the report and the bug fix 🙏
Is this bug present in v1.2? My question behind: should we add it to the v1.3 changelogs as a bug fix?
Also, I recommend avoiding writing main as Meilisearch version -> when we read the issue in the future, main does not have the same meaning as now.
The best is a version, or at least a commit sha (and precise if we are between v1.2 and v1.3 sprint)
Describe the bug
When a query contains a hard separator like
Batman: the dark knight returns, part 1
, then documents with the titleBatman: the dark knight returns, part 1
are not matched with the strategyMatchesFull
, while they should.This is due to multiple factors
field_id_word_count_docids
stores only the word count up to 10.field_id_word_count_docids
stores the max position instead of the number of words. This max position takes into account the offset of hard separators and so we easily get higher than 10.To Reproduce
Steps to reproduce the behavior:
Batman: the dark knight returns, part 1
with ranking score details enabledmatchesStart
ornoExactMatch
instead offullMatch
Expected behavior
Exactness matches
fullMatch
in this caseMeilisearch version:
v1.1.1, v1.2
The text was updated successfully, but these errors were encountered: