mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-10 14:46:36 +00:00
Stop words; Do not reindex all documents if there is no documents
This commit is contained in:
@ -101,6 +101,8 @@ 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...
|
||||||
|
if let Ok(number) = main_store.number_of_documents(writer) {
|
||||||
|
if number > 0 {
|
||||||
reindex_all_documents(
|
reindex_all_documents(
|
||||||
writer,
|
writer,
|
||||||
main_store,
|
main_store,
|
||||||
@ -109,6 +111,8 @@ pub fn apply_stop_words_deletion(
|
|||||||
postings_lists_store,
|
postings_lists_store,
|
||||||
docs_words_store,
|
docs_words_store,
|
||||||
)?;
|
)?;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user