rename has_changed to has_changed_for_facets

This commit is contained in:
nnethercott 2025-05-26 18:37:20 +02:00
parent c9ec502ed9
commit 9ad43b6841

View File

@ -153,7 +153,7 @@ impl FacetedDocidsExtractor {
} }
} }
DocumentChange::Update(inner) => { DocumentChange::Update(inner) => {
let has_changed = inner.has_changed_for_fields( let has_changed_for_facets = inner.has_changed_for_fields(
&mut |field_name| { &mut |field_name| {
match_faceted_field( match_faceted_field(
field_name, field_name,
@ -171,7 +171,7 @@ impl FacetedDocidsExtractor {
inner.has_changed_for_geo_fields(rtxn, index, context.db_fields_ids_map)?; inner.has_changed_for_geo_fields(rtxn, index, context.db_fields_ids_map)?;
// 1. Maybe update doc // 1. Maybe update doc
if has_changed { if has_changed_for_facets {
extract_document_facets( extract_document_facets(
inner.current(rtxn, index, context.db_fields_ids_map)?, inner.current(rtxn, index, context.db_fields_ids_map)?,
new_fields_ids_map.deref_mut(), new_fields_ids_map.deref_mut(),