mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-29 16:24:26 +01:00
Fix offset difference between query and indexing for hard separators
This commit is contained in:
parent
9f37b61666
commit
a2a3b8c973
@ -79,7 +79,7 @@ pub fn located_query_terms_from_tokens(
|
|||||||
TokenKind::Separator(separator_kind) => {
|
TokenKind::Separator(separator_kind) => {
|
||||||
// add penalty for hard separators
|
// add penalty for hard separators
|
||||||
if let SeparatorKind::Hard = separator_kind {
|
if let SeparatorKind::Hard = separator_kind {
|
||||||
position = position.wrapping_add(1);
|
position = position.wrapping_add(7);
|
||||||
}
|
}
|
||||||
|
|
||||||
phrase = 'phrase: {
|
phrase = 'phrase: {
|
||||||
|
Loading…
Reference in New Issue
Block a user