From 7b55462610d0bfe3a07c0eab6d57c71803619db4 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Thu, 12 Sep 2024 17:50:03 +0200 Subject: [PATCH] BREAKING CHANGE: errors if queries.facets in federated search --- meilisearch/src/search/federated.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meilisearch/src/search/federated.rs b/meilisearch/src/search/federated.rs index 58005ec53..f1acf5aa4 100644 --- a/meilisearch/src/search/federated.rs +++ b/meilisearch/src/search/federated.rs @@ -342,6 +342,10 @@ pub fn perform_federated_search( .into()); } + if federated_query.has_facets() { + return Err(MeilisearchHttpError::FacetsInFederatedQuery(query_index).into()); + } + let (index_uid, query, federation_options) = federated_query.into_index_query_federation(); queries_by_index.entry(index_uid.into_inner()).or_default().push(QueryByIndex {