BREAKING CHANGE: errors if queries.facets in federated search

This commit is contained in:
Louis Dureuil 2024-09-12 17:50:03 +02:00
parent f6114a1ff2
commit 7b55462610
No known key found for this signature in database

View File

@ -342,6 +342,10 @@ pub fn perform_federated_search(
.into()); .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(); let (index_uid, query, federation_options) = federated_query.into_index_query_federation();
queries_by_index.entry(index_uid.into_inner()).or_default().push(QueryByIndex { queries_by_index.entry(index_uid.into_inner()).or_default().push(QueryByIndex {