mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-18 08:48:32 +08:00
Stop words; Do not reindex all documents if there is no documents
This commit is contained in:
parent
6edef07e29
commit
88b3c05155
@ -101,14 +101,18 @@ pub fn apply_stop_words_deletion(
|
|||||||
|
|
||||||
// now that we have setup the stop words
|
// now that we have setup the stop words
|
||||||
// lets reindex everything...
|
// lets reindex everything...
|
||||||
reindex_all_documents(
|
if let Ok(number) = main_store.number_of_documents(writer) {
|
||||||
writer,
|
if number > 0 {
|
||||||
main_store,
|
reindex_all_documents(
|
||||||
documents_fields_store,
|
writer,
|
||||||
documents_fields_counts_store,
|
main_store,
|
||||||
postings_lists_store,
|
documents_fields_store,
|
||||||
docs_words_store,
|
documents_fields_counts_store,
|
||||||
)?;
|
postings_lists_store,
|
||||||
|
docs_words_store,
|
||||||
|
)?;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user