finish plugin cellulite to the new indexer

This commit is contained in:
Tamo
2025-07-16 00:10:40 +02:00
parent a921ee31ce
commit 3f00f56f9f
6 changed files with 43 additions and 27 deletions

View File

@ -72,9 +72,9 @@ pub fn write_to_db(
let embedding = large_vector.read_embedding(*dimensions);
writer.add_item_in_store(wtxn, docid, extractor_id, embedding)?;
}
ReceiverAction::GeoJson(geojson) => {
ReceiverAction::GeoJson(docid, geojson) => {
let cellulite = cellulite::Writer::new(index.cellulite);
cellulite.add_item(wtxn, doc_id, &geojson)?;
cellulite.add_item(wtxn, docid, &geojson).map_err(InternalError::CelluliteError)?;
}
}