mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Ignore documents that didn't change in facets
This commit is contained in:
parent
2b74d1824b
commit
fa8b9acdf6
1 changed files with 9 additions and 0 deletions
|
@ -97,6 +97,15 @@ impl FacetedDocidsExtractor {
|
|||
},
|
||||
),
|
||||
DocumentChange::Update(inner) => {
|
||||
if !inner.has_changed_for_fields(
|
||||
Some(attributes_to_extract),
|
||||
rtxn,
|
||||
index,
|
||||
context.db_fields_ids_map,
|
||||
)? {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
extract_document_facets(
|
||||
attributes_to_extract,
|
||||
inner.current(rtxn, index, context.db_fields_ids_map)?,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue