mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08: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