Class GroupedFacetResult
java.lang.Object
org.apache.lucene.search.grouping.GroupedFacetResult
The grouped facet result. Containing grouped facet entries, total count and total missing count.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a facet entry with a value and a count. -
Method Summary
Modifier and TypeMethodDescriptiongetFacetEntries(int offset, int limit) Returns a list of facet entries to be rendered based on the specified offset and limit.intReturns the sum of all facet entries counts.intReturns the number of groups that didn't have a facet value.
-
Method Details
-
getFacetEntries
Returns a list of facet entries to be rendered based on the specified offset and limit. The facet entries are retrieved from the facet entries collected during merging.- Parameters:
offset- The offset in the collected facet entries during merginglimit- The number of facets to return starting from the offset.- Returns:
- a list of facet entries to be rendered based on the specified offset and limit
-
getTotalCount
public int getTotalCount()Returns the sum of all facet entries counts.- Returns:
- the sum of all facet entries counts
-
getTotalMissingCount
public int getTotalMissingCount()Returns the number of groups that didn't have a facet value.- Returns:
- the number of groups that didn't have a facet value
-