Skip to content

Commit 22da9cd

Browse files
committed
Rename
1 parent 9d7f033 commit 22da9cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/search.rs

Lines changed: 5 additions & 5 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 max_total_hits: Option<usize>,
741+
pub exhaustive_facet_count: Option<usize>,
742742
}
743743

744744
#[allow(missing_docs)]
@@ -752,7 +752,7 @@ impl<'a, Http: HttpClient> FacetSearchQuery<'a, Http> {
752752
filter: None,
753753
matching_strategy: None,
754754
attributes_to_search_on: None,
755-
max_total_hits: None,
755+
exhaustive_facet_count: None,
756756
}
757757
}
758758

@@ -801,11 +801,11 @@ impl<'a, Http: HttpClient> FacetSearchQuery<'a, Http> {
801801
self
802802
}
803803

804-
pub fn with_max_total_hits<'b>(
804+
pub fn with_exhaustive_facet_count<'b>(
805805
&'b mut self,
806-
max_total_hits: usize,
806+
exhaustive_facet_count: usize,
807807
) -> &'b mut FacetSearchQuery<'a, Http> {
808-
self.max_total_hits = Some(max_total_hits);
808+
self.exhaustive_facet_count = Some(exhaustive_facet_count);
809809
self
810810
}
811811

0 commit comments

Comments
 (0)