mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 16:51:01 +00:00
feat: Introduce a way to enable or disable query timeouts
This commit is contained in:
@ -159,7 +159,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
Ok(query) => {
|
||||
let start_total = Instant::now();
|
||||
|
||||
let builder = index.query_builder();
|
||||
let builder = index.query_builder().with_fetch_timeout(Duration::from_millis(40));
|
||||
let documents = builder.query(&query, 0..opt.number_results)?;
|
||||
|
||||
let mut retrieve_duration = Duration::default();
|
||||
|
Reference in New Issue
Block a user