@@ -811,6 +811,13 @@ pub struct FederatedMultiSearchQuery<'a, 'b, Http: HttpClient = DefaultHttpClien
811811 pub federation : Option < FederationOptions > ,
812812}
813813
814+ #[ derive( Debug , Serialize , Clone , Default ) ]
815+ #[ serde( rename_all = "camelCase" ) ]
816+ pub struct MergeFacets {
817+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
818+ pub max_values_per_facet : Option < usize > ,
819+ }
820+
814821/// The `federation` field of the multi search API.
815822/// See [the docs](https://www.meilisearch.com/docs/reference/api/multi_search#federation).
816823#[ derive( Debug , Serialize , Clone , Default ) ]
@@ -828,9 +835,9 @@ pub struct FederationOptions {
828835 #[ serde( skip_serializing_if = "Option::is_none" ) ]
829836 pub facets_by_index : Option < HashMap < String , Vec < String > > > ,
830837
831- /// Display facet information for the specified indexes
838+ /// Request to merge the facets to enforce a maximum number of values per facet.
832839 #[ serde( skip_serializing_if = "Option::is_none" ) ]
833- pub merge_facets : Option < bool > ,
840+ pub merge_facets : Option < MergeFacets > ,
834841}
835842
836843impl < ' a , Http : HttpClient > FederatedMultiSearchQuery < ' a , ' _ , Http > {
0 commit comments