Use the documents_fileds_count store in the QueryBuilder

This commit is contained in:
Clément Renault
2019-10-14 18:48:32 +02:00
parent b377003192
commit e629f51af4
4 changed files with 85 additions and 18 deletions

View File

@ -47,6 +47,9 @@ impl RawIndexer {
let iter = Some(lowercase_text).into_iter().chain(next);
for text in iter {
// we must not count 2 times the same words
number_of_words = 0;
for token in Tokenizer::new(&text) {
let must_continue = index_token(
token,