Introduce a clear all documents update

This commit is contained in:
Clément Renault
2019-10-23 16:32:11 +02:00
parent 8d9d183ce6
commit 047eba3ff3
7 changed files with 72 additions and 0 deletions

View File

@ -184,6 +184,7 @@ pub fn reindex_all_documents(
main_store.put_ranked_map(writer, &ranked_map)?;
main_store.put_number_of_documents(writer, |_| 0)?;
postings_lists_store.clear(writer)?;
docs_words_store.clear(writer)?;
// 3. re-index one document by one document (otherwise we make the borrow checker unhappy)
let mut indexer = RawIndexer::new();