mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-21 04:06:26 +00:00
remove a bunch of useless logs
This commit is contained in:
@ -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")]
|
#[tracing::instrument(level = "trace", skip_all, target = "indexing::extract")]
|
||||||
pub fn extract_geojson<R: io::Read + io::Seek>(
|
pub fn extract_geojson<R: io::Read + io::Seek>(
|
||||||
obkv_documents: grenad::Reader<R>,
|
obkv_documents: grenad::Reader<R>,
|
||||||
@ -125,8 +125,6 @@ pub fn extract_geojson<R: io::Read + io::Seek>(
|
|||||||
tempfile::tempfile()?,
|
tempfile::tempfile()?,
|
||||||
);
|
);
|
||||||
|
|
||||||
tracing::info!("Extracting one geojson");
|
|
||||||
|
|
||||||
let mut cursor = obkv_documents.into_cursor()?;
|
let mut cursor = obkv_documents.into_cursor()?;
|
||||||
while let Some((docid_bytes, value)) = cursor.move_on_next()? {
|
while let Some((docid_bytes, value)) = cursor.move_on_next()? {
|
||||||
let obkv = obkv::KvReader::from_slice(value);
|
let obkv = obkv::KvReader::from_slice(value);
|
||||||
@ -149,12 +147,10 @@ pub fn extract_geojson<R: io::Read + io::Seek>(
|
|||||||
if del_geojson != add_geojson {
|
if del_geojson != add_geojson {
|
||||||
let mut obkv = KvWriterDelAdd::memory();
|
let mut obkv = KvWriterDelAdd::memory();
|
||||||
if del_geojson.is_some() {
|
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
|
// We don't need to store the geojson, we'll just delete it by id
|
||||||
obkv.insert(DelAdd::Deletion, [])?;
|
obkv.insert(DelAdd::Deletion, [])?;
|
||||||
}
|
}
|
||||||
if let Some(geojson) = add_geojson {
|
if let Some(geojson) = add_geojson {
|
||||||
#[allow(clippy::drop_non_drop)]
|
|
||||||
obkv.insert(DelAdd::Addition, geojson.to_string().as_bytes())?;
|
obkv.insert(DelAdd::Addition, geojson.to_string().as_bytes())?;
|
||||||
}
|
}
|
||||||
let bytes = obkv.into_inner()?;
|
let bytes = obkv.into_inner()?;
|
||||||
|
@ -187,7 +187,6 @@ where
|
|||||||
facet_field_ids_delta,
|
facet_field_ids_delta,
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
println!("Building geojson");
|
|
||||||
indexing_context.progress.update_progress(IndexingStep::BuildingGeoJson);
|
indexing_context.progress.update_progress(IndexingStep::BuildingGeoJson);
|
||||||
index.cellulite.build(
|
index.cellulite.build(
|
||||||
wtxn,
|
wtxn,
|
||||||
|
Reference in New Issue
Block a user