remove timeout search query parameter

fix requested changes
This commit is contained in:
Quentin de Quelen 2020-04-24 18:18:40 +02:00 committed by qdequele
parent bc8ff49de3
commit ea308eb798
No known key found for this signature in database
GPG key ID: B3F0A000EBF11745
4 changed files with 6 additions and 20 deletions

View file

@ -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();