public abstract class TermGroupFacetCollector extends GroupFacetCollector
GroupFacetCollector
that computes grouped facets based on the indexed terms
from DocValues.Modifier and Type | Class and Description |
---|---|
private static class |
TermGroupFacetCollector.GroupedFacetHit |
(package private) static class |
TermGroupFacetCollector.MV |
(package private) static class |
TermGroupFacetCollector.SV |
GroupFacetCollector.FacetEntry, GroupFacetCollector.GroupedFacetResult, GroupFacetCollector.SegmentResult
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<TermGroupFacetCollector.GroupedFacetHit> |
groupedFacetHits |
(package private) SortedDocValues |
groupFieldTermsIndex |
(package private) SentinelIntSet |
segmentGroupedFacetHits |
endFacetOrd, facetField, facetPrefix, groupField, segmentFacetCounts, segmentResults, segmentTotalCount, startFacetOrd
Constructor and Description |
---|
TermGroupFacetCollector(java.lang.String groupField,
java.lang.String facetField,
BytesRef facetPrefix,
int initialSize) |
Modifier and Type | Method and Description |
---|---|
static TermGroupFacetCollector |
createTermGroupFacetCollector(java.lang.String groupField,
java.lang.String facetField,
boolean facetFieldMultivalued,
BytesRef facetPrefix,
int initialSize)
Factory method for creating the right implementation based on the fact whether the facet field contains
multiple tokens per documents.
|
createSegmentResult, mergeSegmentResults, scoreMode, setScorer
collect, doSetNextReader, getLeafCollector
final java.util.List<TermGroupFacetCollector.GroupedFacetHit> groupedFacetHits
final SentinelIntSet segmentGroupedFacetHits
SortedDocValues groupFieldTermsIndex
TermGroupFacetCollector(java.lang.String groupField, java.lang.String facetField, BytesRef facetPrefix, int initialSize)
public static TermGroupFacetCollector createTermGroupFacetCollector(java.lang.String groupField, java.lang.String facetField, boolean facetFieldMultivalued, BytesRef facetPrefix, int initialSize)
groupField
- The group fieldfacetField
- The facet fieldfacetFieldMultivalued
- Whether the facet field has multiple tokens per documentfacetPrefix
- The facet prefix a facet entry should start with to be included.initialSize
- The initial allocation size of the internal int set and group facet list which should roughly
match the total number of expected unique groups. Be aware that the heap usage is
4 bytes * initialSize.TermGroupFacetCollector
implementation