From 8cc2bc4e17d3e9fcdae305672e04a65763979a65 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Wed, 20 Dec 2023 14:54:34 +0100 Subject: [PATCH] CHange prefix treasholds to reduce their impact on the indexing time --- milli/src/update/words_prefixes_fst.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/update/words_prefixes_fst.rs b/milli/src/update/words_prefixes_fst.rs index f26bf93e5..0a475bbfc 100644 --- a/milli/src/update/words_prefixes_fst.rs +++ b/milli/src/update/words_prefixes_fst.rs @@ -15,7 +15,7 @@ pub struct WordsPrefixesFst<'t, 'i> { impl<'t, 'i> WordsPrefixesFst<'t, 'i> { pub fn new(wtxn: &'t mut RwTxn<'i>, index: &'i Index) -> WordsPrefixesFst<'t, 'i> { - WordsPrefixesFst { wtxn, index, threshold: 100, max_prefix_length: 4 } + WordsPrefixesFst { wtxn, index, threshold: 500, max_prefix_length: 3 } } /// Set the number of words required to make a prefix be part of the words prefixes