mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-06-06 20:25:40 +00:00
feat: mettre a jour the insta snapshots
This commit is contained in:
parent
95821d0bde
commit
6738a4f6ee
@ -2039,6 +2039,14 @@ async fn update_documents_with_geo_field() {
|
|||||||
@r###"
|
@r###"
|
||||||
{
|
{
|
||||||
"hits": [
|
"hits": [
|
||||||
|
{
|
||||||
|
"id": "4",
|
||||||
|
"_geo": {
|
||||||
|
"lat": "4",
|
||||||
|
"lng": "0"
|
||||||
|
},
|
||||||
|
"_geoDistance": 667170
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "3",
|
"id": "3",
|
||||||
"_geo": {
|
"_geo": {
|
||||||
@ -2048,14 +2056,6 @@ async fn update_documents_with_geo_field() {
|
|||||||
"doggo": "kefir",
|
"doggo": "kefir",
|
||||||
"_geoDistance": 555975
|
"_geoDistance": 555975
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "4",
|
|
||||||
"_geo": {
|
|
||||||
"lat": "4",
|
|
||||||
"lng": "0"
|
|
||||||
},
|
|
||||||
"_geoDistance": 667170
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "1"
|
"id": "1"
|
||||||
},
|
},
|
||||||
|
@ -135,7 +135,6 @@ impl FacetedDocidsExtractor {
|
|||||||
|
|
||||||
extract_document_facets(
|
extract_document_facets(
|
||||||
inner.current(rtxn, index, context.db_fields_ids_map)?,
|
inner.current(rtxn, index, context.db_fields_ids_map)?,
|
||||||
inner.external_document_id(),
|
|
||||||
new_fields_ids_map.deref_mut(),
|
new_fields_ids_map.deref_mut(),
|
||||||
filterable_attributes,
|
filterable_attributes,
|
||||||
sortable_fields,
|
sortable_fields,
|
||||||
@ -177,7 +176,6 @@ impl FacetedDocidsExtractor {
|
|||||||
|
|
||||||
extract_document_facets(
|
extract_document_facets(
|
||||||
inner.current(rtxn, index, context.db_fields_ids_map)?,
|
inner.current(rtxn, index, context.db_fields_ids_map)?,
|
||||||
inner.external_document_id(),
|
|
||||||
new_fields_ids_map.deref_mut(),
|
new_fields_ids_map.deref_mut(),
|
||||||
filterable_attributes,
|
filterable_attributes,
|
||||||
sortable_fields,
|
sortable_fields,
|
||||||
@ -200,7 +198,6 @@ impl FacetedDocidsExtractor {
|
|||||||
|
|
||||||
extract_document_facets(
|
extract_document_facets(
|
||||||
inner.merged(rtxn, index, context.db_fields_ids_map)?,
|
inner.merged(rtxn, index, context.db_fields_ids_map)?,
|
||||||
inner.external_document_id(),
|
|
||||||
new_fields_ids_map.deref_mut(),
|
new_fields_ids_map.deref_mut(),
|
||||||
filterable_attributes,
|
filterable_attributes,
|
||||||
sortable_fields,
|
sortable_fields,
|
||||||
@ -224,7 +221,6 @@ impl FacetedDocidsExtractor {
|
|||||||
|
|
||||||
extract_document_facets(
|
extract_document_facets(
|
||||||
inner.inserted(),
|
inner.inserted(),
|
||||||
inner.external_document_id(),
|
|
||||||
new_fields_ids_map.deref_mut(),
|
new_fields_ids_map.deref_mut(),
|
||||||
filterable_attributes,
|
filterable_attributes,
|
||||||
sortable_fields,
|
sortable_fields,
|
||||||
@ -232,6 +228,7 @@ impl FacetedDocidsExtractor {
|
|||||||
distinct_field,
|
distinct_field,
|
||||||
&mut add,
|
&mut add,
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
if is_geo_enabled {
|
if is_geo_enabled {
|
||||||
extract_geo_document(
|
extract_geo_document(
|
||||||
inner.inserted(),
|
inner.inserted(),
|
||||||
|
@ -16,7 +16,6 @@ use crate::filterable_attributes_rules::match_faceted_field;
|
|||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn extract_document_facets<'doc>(
|
pub fn extract_document_facets<'doc>(
|
||||||
document: impl Document<'doc>,
|
document: impl Document<'doc>,
|
||||||
external_document_id: &str,
|
|
||||||
field_id_map: &mut GlobalFieldsIdsMap,
|
field_id_map: &mut GlobalFieldsIdsMap,
|
||||||
filterable_attributes: &[FilterableAttributesRule],
|
filterable_attributes: &[FilterableAttributesRule],
|
||||||
sortable_fields: &HashSet<String>,
|
sortable_fields: &HashSet<String>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user