Skip to content

Commit f2afdda

Browse files
committed
Fix type
1 parent 4387348 commit f2afdda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/search.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ pub struct FacetSearchQuery<'a, Http: HttpClient = DefaultHttpClient> {
738738
pub attributes_to_search_on: Option<&'a [&'a str]>,
739739
/// Return an exhaustive count of facets, up to the limit defined by maxTotalHits. Default is false.
740740
#[serde(skip_serializing_if = "Option::is_none")]
741-
pub exhaustive_facet_count: Option<usize>,
741+
pub exhaustive_facet_count: Option<bool>,
742742
}
743743

744744
#[allow(missing_docs)]
@@ -803,7 +803,7 @@ impl<'a, Http: HttpClient> FacetSearchQuery<'a, Http> {
803803

804804
pub fn with_exhaustive_facet_count<'b>(
805805
&'b mut self,
806-
exhaustive_facet_count: usize,
806+
exhaustive_facet_count: bool,
807807
) -> &'b mut FacetSearchQuery<'a, Http> {
808808
self.exhaustive_facet_count = Some(exhaustive_facet_count);
809809
self

0 commit comments

Comments
 (0)