mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-02-11 04:53:30 +01:00
Ignore documents that didn't change any field in word pair proximity
This commit is contained in:
parent
c77b00d3ac
commit
2b74d1824b
@ -70,6 +70,15 @@ impl SearchableExtractor for WordPairProximityDocidsExtractor {
|
|||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
DocumentChange::Update(inner) => {
|
DocumentChange::Update(inner) => {
|
||||||
|
if !inner.has_changed_for_fields(
|
||||||
|
document_tokenizer.attribute_to_extract,
|
||||||
|
rtxn,
|
||||||
|
index,
|
||||||
|
context.db_fields_ids_map,
|
||||||
|
)? {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
|
||||||
let document = inner.current(rtxn, index, context.db_fields_ids_map)?;
|
let document = inner.current(rtxn, index, context.db_fields_ids_map)?;
|
||||||
process_document_tokens(
|
process_document_tokens(
|
||||||
document,
|
document,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user