mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 05:14:27 +01:00
Reduce candidates threshold
This commit is contained in:
parent
ea4bd29d14
commit
1bd15d849b
@ -361,6 +361,7 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
// We must use the write transaction of the update here.
|
// We must use the write transaction of the update here.
|
||||||
let mut wtxn = index_cloned.write_txn()?;
|
let mut wtxn = index_cloned.write_txn()?;
|
||||||
let mut builder = update_builder.index_documents(&mut wtxn, &index_cloned);
|
let mut builder = update_builder.index_documents(&mut wtxn, &index_cloned);
|
||||||
|
builder.enable_autogenerate_docids();
|
||||||
|
|
||||||
match method.as_str() {
|
match method.as_str() {
|
||||||
"replace" => builder
|
"replace" => builder
|
||||||
|
@ -19,7 +19,7 @@ const LCM_10_FIRST_NUMBERS: u32 = 2520;
|
|||||||
|
|
||||||
/// Threshold on the number of candidates that will make
|
/// Threshold on the number of candidates that will make
|
||||||
/// the system to choose between one algorithm or another.
|
/// the system to choose between one algorithm or another.
|
||||||
const CANDIDATES_THRESHOLD: u64 = 1000;
|
const CANDIDATES_THRESHOLD: u64 = 500;
|
||||||
|
|
||||||
type FlattenedQueryTree = Vec<Vec<Vec<Query>>>;
|
type FlattenedQueryTree = Vec<Vec<Vec<Query>>>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user