Skip to content

Commit

Permalink
Fix offset difference between query and indexing for hard separators
Browse files Browse the repository at this point in the history
  • Loading branch information
dureuill committed Jun 8, 2023
1 parent 8177e40 commit 475c4e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion milli/src/search/new/query_term/parse_query.rs
Expand Up @@ -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: {
Expand Down

0 comments on commit 475c4e9

Please sign in to comment.