feat: mettre a jour the insta snapshots

This commit is contained in:
nnethercott 2025-05-26 10:08:07 +02:00
parent 95821d0bde
commit 6738a4f6ee
3 changed files with 9 additions and 13 deletions

View File

@ -2039,6 +2039,14 @@ async fn update_documents_with_geo_field() {
@r###"
{
"hits": [
{
"id": "4",
"_geo": {
"lat": "4",
"lng": "0"
},
"_geoDistance": 667170
},
{
"id": "3",
"_geo": {
@ -2048,14 +2056,6 @@ async fn update_documents_with_geo_field() {
"doggo": "kefir",
"_geoDistance": 555975
},
{
"id": "4",
"_geo": {
"lat": "4",
"lng": "0"
},
"_geoDistance": 667170
},
{
"id": "1"
},

View File

@ -135,7 +135,6 @@ impl FacetedDocidsExtractor {
extract_document_facets(
inner.current(rtxn, index, context.db_fields_ids_map)?,
inner.external_document_id(),
new_fields_ids_map.deref_mut(),
filterable_attributes,
sortable_fields,
@ -177,7 +176,6 @@ impl FacetedDocidsExtractor {
extract_document_facets(
inner.current(rtxn, index, context.db_fields_ids_map)?,
inner.external_document_id(),
new_fields_ids_map.deref_mut(),
filterable_attributes,
sortable_fields,
@ -200,7 +198,6 @@ impl FacetedDocidsExtractor {
extract_document_facets(
inner.merged(rtxn, index, context.db_fields_ids_map)?,
inner.external_document_id(),
new_fields_ids_map.deref_mut(),
filterable_attributes,
sortable_fields,
@ -224,7 +221,6 @@ impl FacetedDocidsExtractor {
extract_document_facets(
inner.inserted(),
inner.external_document_id(),
new_fields_ids_map.deref_mut(),
filterable_attributes,
sortable_fields,
@ -232,6 +228,7 @@ impl FacetedDocidsExtractor {
distinct_field,
&mut add,
)?;
if is_geo_enabled {
extract_geo_document(
inner.inserted(),

View File

@ -16,7 +16,6 @@ use crate::filterable_attributes_rules::match_faceted_field;
#[allow(clippy::too_many_arguments)]
pub fn extract_document_facets<'doc>(
document: impl Document<'doc>,
external_document_id: &str,
field_id_map: &mut GlobalFieldsIdsMap,
filterable_attributes: &[FilterableAttributesRule],
sortable_fields: &HashSet<String>,