mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Tune the words prefixes threshold to compute for 1/1000 instead
This commit is contained in:
parent
f376c6a728
commit
07784c8990
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -866,6 +866,7 @@ dependencies = [
|
|||||||
"anyhow",
|
"anyhow",
|
||||||
"byte-unit",
|
"byte-unit",
|
||||||
"heed",
|
"heed",
|
||||||
|
"jemallocator",
|
||||||
"milli",
|
"milli",
|
||||||
"stderrlog",
|
"stderrlog",
|
||||||
"structopt",
|
"structopt",
|
||||||
|
@ -598,7 +598,7 @@ fn export_documents(index: &Index, rtxn: &heed::RoTxn, internal_ids: Vec<u32>) -
|
|||||||
let fields_ids_map = index.fields_ids_map(rtxn)?;
|
let fields_ids_map = index.fields_ids_map(rtxn)?;
|
||||||
let displayed_fields: Vec<_> = fields_ids_map.iter().map(|(id, _name)| id).collect();
|
let displayed_fields: Vec<_> = fields_ids_map.iter().map(|(id, _name)| id).collect();
|
||||||
|
|
||||||
let iter: Box<Iterator<Item = _>> = if internal_ids.is_empty() {
|
let iter: Box<dyn Iterator<Item = _>> = if internal_ids.is_empty() {
|
||||||
Box::new(index.documents.iter(rtxn)?.map(|result| {
|
Box::new(index.documents.iter(rtxn)?.map(|result| {
|
||||||
result.map(|(_id, obkv)| obkv)
|
result.map(|(_id, obkv)| obkv)
|
||||||
}))
|
}))
|
||||||
|
@ -41,7 +41,7 @@ impl<'t, 'u, 'i> WordsPrefixes<'t, 'u, 'i> {
|
|||||||
chunk_fusing_shrink_size: None,
|
chunk_fusing_shrink_size: None,
|
||||||
max_nb_chunks: None,
|
max_nb_chunks: None,
|
||||||
max_memory: None,
|
max_memory: None,
|
||||||
threshold: 0.01, // 1%
|
threshold: 0.1 / 100.0, // .01%
|
||||||
max_prefix_length: 4,
|
max_prefix_length: 4,
|
||||||
_update_id: update_id,
|
_update_id: update_id,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user