mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 05:14:27 +01:00
Use the proximity instead of the attributes when searching for <= 7 proximities
This commit is contained in:
parent
fe3be8f18a
commit
736f0f7560
@ -195,9 +195,8 @@ impl Index {
|
|||||||
let lunion_docids = union_cache.get(&(lword, lpos)).unwrap();
|
let lunion_docids = union_cache.get(&(lword, lpos)).unwrap();
|
||||||
let runion_docids = union_cache.get(&(rword, rpos)).unwrap();
|
let runion_docids = union_cache.get(&(rword, rpos)).unwrap();
|
||||||
|
|
||||||
|
if proximity <= 7 {
|
||||||
let lattr = lpos / 1000;
|
let lattr = lpos / 1000;
|
||||||
let rattr = rpos / 1000;
|
|
||||||
if lattr == rattr {
|
|
||||||
if let Some(docids) = &words_attributes_docids[lattr as usize] {
|
if let Some(docids) = &words_attributes_docids[lattr as usize] {
|
||||||
if lunion_docids.is_disjoint(&docids) { return false }
|
if lunion_docids.is_disjoint(&docids) { return false }
|
||||||
if runion_docids.is_disjoint(&docids) { return false }
|
if runion_docids.is_disjoint(&docids) { return false }
|
||||||
|
Loading…
Reference in New Issue
Block a user