mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Actually delete documents from DB when the merge function says so
This commit is contained in:
parent
8e0d9c9a5e
commit
6260cff65f
3 changed files with 24 additions and 32 deletions
|
@ -390,22 +390,7 @@ where
|
|||
return Err(Error::InternalError(InternalError::AbortedIndexation));
|
||||
}
|
||||
|
||||
let typed_chunk = match result? {
|
||||
TypedChunk::WordDocids {
|
||||
word_docids_reader,
|
||||
exact_word_docids_reader,
|
||||
word_fid_docids_reader,
|
||||
} => TypedChunk::WordDocids {
|
||||
word_docids_reader,
|
||||
exact_word_docids_reader,
|
||||
word_fid_docids_reader,
|
||||
},
|
||||
TypedChunk::WordPairProximityDocids(chunk) => {
|
||||
TypedChunk::WordPairProximityDocids(chunk)
|
||||
}
|
||||
TypedChunk::WordPositionDocids(chunk) => TypedChunk::WordPositionDocids(chunk),
|
||||
otherwise => otherwise,
|
||||
};
|
||||
let typed_chunk = result?;
|
||||
|
||||
// FIXME: return newly added as well as newly deleted documents
|
||||
let (docids, is_merged_database) =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue