mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
remove timeout search query parameter
fix requested changes
This commit is contained in:
parent
bc8ff49de3
commit
ea308eb798
4 changed files with 6 additions and 20 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue