From d20efe1569b76cf49364a702d18f9355c4b0b262 Mon Sep 17 00:00:00 2001 From: Tamo Date: Thu, 18 Sep 2025 17:10:28 +0200 Subject: [PATCH] remove a bunch of useless logs --- .../update/index_documents/extract/extract_geo_points.rs | 8 ++------ crates/milli/src/update/new/indexer/mod.rs | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/crates/milli/src/update/index_documents/extract/extract_geo_points.rs b/crates/milli/src/update/index_documents/extract/extract_geo_points.rs index c2b8b270e..d50ed4d3b 100644 --- a/crates/milli/src/update/index_documents/extract/extract_geo_points.rs +++ b/crates/milli/src/update/index_documents/extract/extract_geo_points.rs @@ -109,9 +109,9 @@ fn extract_lat_lng( } } -/// Extracts the geographical coordinates contained in each document under the `_geo` field. +/// Extracts the geographical coordinates contained in each document under the `_geojson` field. /// -/// Returns the generated grenad reader containing the docid as key associated to the (latitude, longitude) +/// Returns the generated grenad reader containing the docid as key associated to its zerometry #[tracing::instrument(level = "trace", skip_all, target = "indexing::extract")] pub fn extract_geojson( obkv_documents: grenad::Reader, @@ -125,8 +125,6 @@ pub fn extract_geojson( tempfile::tempfile()?, ); - tracing::info!("Extracting one geojson"); - let mut cursor = obkv_documents.into_cursor()?; while let Some((docid_bytes, value)) = cursor.move_on_next()? { let obkv = obkv::KvReader::from_slice(value); @@ -149,12 +147,10 @@ pub fn extract_geojson( if del_geojson != add_geojson { let mut obkv = KvWriterDelAdd::memory(); if del_geojson.is_some() { - #[allow(clippy::drop_non_drop)] // We don't need to store the geojson, we'll just delete it by id obkv.insert(DelAdd::Deletion, [])?; } if let Some(geojson) = add_geojson { - #[allow(clippy::drop_non_drop)] obkv.insert(DelAdd::Addition, geojson.to_string().as_bytes())?; } let bytes = obkv.into_inner()?; diff --git a/crates/milli/src/update/new/indexer/mod.rs b/crates/milli/src/update/new/indexer/mod.rs index 792ae2c0d..63bac7826 100644 --- a/crates/milli/src/update/new/indexer/mod.rs +++ b/crates/milli/src/update/new/indexer/mod.rs @@ -187,7 +187,6 @@ where facet_field_ids_delta, )?; - println!("Building geojson"); indexing_context.progress.update_progress(IndexingStep::BuildingGeoJson); index.cellulite.build( wtxn,