mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Fix offset difference between query and indexing for hard separators
This commit is contained in:
parent
9f37b61666
commit
a2a3b8c973
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ pub fn located_query_terms_from_tokens(
|
|||
TokenKind::Separator(separator_kind) => {
|
||||
// add penalty for hard separators
|
||||
if let SeparatorKind::Hard = separator_kind {
|
||||
position = position.wrapping_add(1);
|
||||
position = position.wrapping_add(7);
|
||||
}
|
||||
|
||||
phrase = 'phrase: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue