mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Choose implementation strategy of criterion at runtime
This commit is contained in:
parent
97fb64e40e
commit
229405aeb9
7 changed files with 156 additions and 50 deletions
|
@ -13,7 +13,7 @@ use milli::update::UpdateIndexingStep::{
|
|||
ComputeIdsAndMergeDocuments, IndexDocuments, MergeDataIntoFinalDatabase, RemapDocumentAddition,
|
||||
};
|
||||
use milli::update::{self, IndexDocumentsConfig, IndexDocumentsMethod, IndexerConfig};
|
||||
use milli::{heed, Index, Object};
|
||||
use milli::{heed, CriterionImplementationStrategy, Index, Object};
|
||||
use structopt::StructOpt;
|
||||
|
||||
#[global_allocator]
|
||||
|
@ -441,7 +441,7 @@ impl Search {
|
|||
if let Some(limit) = limit {
|
||||
search.limit(*limit);
|
||||
}
|
||||
|
||||
search.criterion_implementation_strategy(CriterionImplementationStrategy::OnlyIterative);
|
||||
let result = search.execute()?;
|
||||
|
||||
let fields_ids_map = index.fields_ids_map(&txn)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue