From 3e3f73ba1e92d1b389545512e3b799eb541d7ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 28 Jun 2023 15:43:38 +0200 Subject: [PATCH] Fix the analytics --- meilisearch/src/analytics/segment_analytics.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meilisearch/src/analytics/segment_analytics.rs b/meilisearch/src/analytics/segment_analytics.rs index 939550cb0..597fae8b2 100644 --- a/meilisearch/src/analytics/segment_analytics.rs +++ b/meilisearch/src/analytics/segment_analytics.rs @@ -969,8 +969,11 @@ impl FacetSearchAggregator { ret.user_agents = extract_user_agents(request).into_iter().collect(); ret.facet_names = Some(facet_name.clone()).into_iter().collect(); - ret.additional_search_parameters_provided = - q.is_some() || filter.is_some() || *matching_strategy != MatchingStrategy::default(); + ret.additional_search_parameters_provided = q.is_some() + || vector.is_some() + || filter.is_some() + || *matching_strategy != MatchingStrategy::default() + || attributes_to_search_on.is_some(); ret }