diff --git a/meilisearch/src/routes/indexes/facet_search.rs b/meilisearch/src/routes/indexes/facet_search.rs index 21bc2d9c7..5dd2ac039 100644 --- a/meilisearch/src/routes/indexes/facet_search.rs +++ b/meilisearch/src/routes/indexes/facet_search.rs @@ -38,6 +38,8 @@ pub struct FacetSearchQuery { pub filter: Option, #[deserr(default, error = DeserrJsonError, default)] pub matching_strategy: MatchingStrategy, + #[deserr(default, error = DeserrJsonError, default)] + pub attributes_to_search_on: Option>, } pub async fn search( @@ -90,6 +92,7 @@ impl From for SearchQuery { vector, filter, matching_strategy, + attributes_to_search_on, } = value; SearchQuery { @@ -113,6 +116,7 @@ impl From for SearchQuery { crop_marker: DEFAULT_CROP_MARKER(), matching_strategy, vector, + attributes_to_search_on, } } }