Fix analytics

This commit is contained in:
Louis Dureuil 2023-06-28 16:41:56 +02:00
parent 3e3f73ba1e
commit 605c1dd54a
No known key found for this signature in database

View File

@ -960,7 +960,15 @@ pub struct FacetSearchAggregator {
impl FacetSearchAggregator { impl FacetSearchAggregator {
pub fn from_query(query: &FacetSearchQuery, request: &HttpRequest) -> Self { pub fn from_query(query: &FacetSearchQuery, request: &HttpRequest) -> Self {
let FacetSearchQuery { facet_query: _, facet_name, q, filter, matching_strategy } = query; let FacetSearchQuery {
facet_query: _,
facet_name,
vector,
q,
filter,
matching_strategy,
attributes_to_search_on,
} = query;
let mut ret = Self::default(); let mut ret = Self::default();
ret.timestamp = Some(OffsetDateTime::now_utc()); ret.timestamp = Some(OffsetDateTime::now_utc());