File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -834,6 +834,7 @@ facet_search_1: |-
834834facet_search_3 : |-
835835 var query = new SearchFacetsQuery()
836836 {
837- FacetQuery = "c"
837+ FacetQuery = "c",
838+ ExhaustiveFacetCount: true
838839 };
839840 await client.Index("books").FacetSearchAsync("genres", query);
Original file line number Diff line number Diff line change @@ -43,5 +43,13 @@ public class FacetSearchQuery
4343 /// </summary>
4444 [ JsonPropertyName ( "attributesToSearchOn" ) ]
4545 public IEnumerable < string > AttributesToSearchOn { get ; set ; }
46+
47+ /// <summary>
48+ /// When true, returns an exhaustive (exact) count for facet values during facet search.
49+ /// This may increase response time on large datasets. Omit or set to false to favor performance.
50+ /// Default (when null/omitted): server defaults apply.
51+ /// </summary>
52+ [ JsonPropertyName ( "exhaustiveFacetCount" ) ]
53+ public bool ? ExhaustiveFacetCount { get ; set ; }
4654 }
4755}
You can’t perform that action at this time.
0 commit comments