Fix offset difference between query and indexing for hard separators

This commit is contained in:
Louis Dureuil 2023-06-06 15:08:13 +02:00
parent 9f37b61666
commit a2a3b8c973
No known key found for this signature in database

View File

@ -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: {