mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-02 09:46:29 +00:00
update to the latest version of cellulite and steppe
This commit is contained in:
@@ -542,8 +542,7 @@ where
|
||||
}
|
||||
|
||||
tracing::warn!("Building cellulite");
|
||||
let cellulite = cellulite::Cellulite::new(self.index.cellulite);
|
||||
cellulite.build(self.wtxn, &Progress::default())?;
|
||||
self.index.cellulite.build(self.wtxn, &Progress::default())?;
|
||||
|
||||
self.execute_prefix_databases(
|
||||
word_docids.map(MergerBuilder::build),
|
||||
|
@@ -629,8 +629,6 @@ pub(crate) fn write_typed_chunk_into_index(
|
||||
}
|
||||
let merger = builder.build();
|
||||
|
||||
let cellulite = cellulite::Cellulite::new(index.cellulite);
|
||||
|
||||
let mut iter = merger.into_stream_merger_iter()?;
|
||||
while let Some((key, value)) = iter.next()? {
|
||||
// convert the key back to a u32 (4 bytes)
|
||||
@@ -639,14 +637,14 @@ pub(crate) fn write_typed_chunk_into_index(
|
||||
|
||||
let deladd_obkv = KvReaderDelAdd::from_slice(value);
|
||||
if let Some(_value) = deladd_obkv.get(DelAdd::Deletion) {
|
||||
cellulite.delete(wtxn, docid)?;
|
||||
index.cellulite.delete(wtxn, docid)?;
|
||||
}
|
||||
if let Some(value) = deladd_obkv.get(DelAdd::Addition) {
|
||||
tracing::warn!("Adding one geojson to cellulite");
|
||||
|
||||
let geojson =
|
||||
geojson::GeoJson::from_reader(value).map_err(UserError::SerdeJson)?;
|
||||
cellulite
|
||||
index.cellulite
|
||||
.add(wtxn, docid, &geojson)
|
||||
.map_err(InternalError::CelluliteError)?;
|
||||
}
|
||||
|
Reference in New Issue
Block a user