From 9f37b61666363bf87175ad8722b1cd3929fd0160 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Thu, 8 Jun 2023 11:31:38 +0200 Subject: [PATCH] DB BREAKING: raise limit of word count from 10 to 30. --- .../index_documents/extract/extract_fid_word_count_docids.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/update/index_documents/extract/extract_fid_word_count_docids.rs b/milli/src/update/index_documents/extract/extract_fid_word_count_docids.rs index 6952eb484..fe8eb93ed 100644 --- a/milli/src/update/index_documents/extract/extract_fid_word_count_docids.rs +++ b/milli/src/update/index_documents/extract/extract_fid_word_count_docids.rs @@ -82,7 +82,7 @@ fn drain_document_fid_wordcount_into_sorter( let mut key_buffer = Vec::new(); for (fid, count) in document_fid_wordcount.drain() { - if count <= 10 { + if count <= 30 { key_buffer.clear(); key_buffer.extend_from_slice(&fid.to_be_bytes()); key_buffer.push(count as u8);