public abstract class TermGroupFacetCollector extends GroupFacetCollector
GroupFacetCollectorthat computes grouped facets based on the indexed terms from DocValues.
|Modifier and Type||Method and Description|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static TermGroupFacetCollector createTermGroupFacetCollector(String groupField, String facetField, boolean facetFieldMultivalued, BytesRef facetPrefix, int initialSize)
groupField- The group field
facetField- The facet field
facetFieldMultivalued- Whether the facet field has multiple tokens per document
facetPrefix- 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.
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.