mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
remove timeout search query parameter
fix requested changes
This commit is contained in:
committed by
qdequele
parent
bc8ff49de3
commit
ea308eb798
@ -1,5 +1,4 @@
|
||||
use std::collections::{HashSet, HashMap};
|
||||
use std::time::Duration;
|
||||
|
||||
use log::warn;
|
||||
use actix_web::web;
|
||||
@ -27,7 +26,6 @@ struct SearchQuery {
|
||||
crop_length: Option<usize>,
|
||||
attributes_to_highlight: Option<String>,
|
||||
filters: Option<String>,
|
||||
timeout_ms: Option<u64>,
|
||||
matches: Option<bool>,
|
||||
}
|
||||
|
||||
@ -133,10 +131,6 @@ async fn search_with_url_query(
|
||||
search_builder.filters(filters.to_string());
|
||||
}
|
||||
|
||||
if let Some(timeout_ms) = params.timeout_ms {
|
||||
search_builder.timeout(Duration::from_millis(timeout_ms));
|
||||
}
|
||||
|
||||
if let Some(matches) = params.matches {
|
||||
if matches {
|
||||
search_builder.get_matches();
|
||||
|
Reference in New Issue
Block a user