mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
federated queries: adjust error message
This commit is contained in:
parent
6732dd95d7
commit
dc8a662209
3 changed files with 14 additions and 9 deletions
|
@ -455,9 +455,8 @@ impl SearchQueryWithIndex {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn has_facets(&self) -> bool {
|
||||
let Some(facets) = &self.facets else { return false };
|
||||
!facets.is_empty()
|
||||
pub fn has_facets(&self) -> Option<&[String]> {
|
||||
self.facets.as_deref().filter(|v| !v.is_empty())
|
||||
}
|
||||
|
||||
pub fn into_index_query_federation(self) -> (IndexUid, SearchQuery, Option<FederationOptions>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue