Class GroupFacetCollector
java.lang.Object
org.apache.lucene.search.SimpleCollector
org.apache.lucene.search.grouping.GroupFacetCollector
- All Implemented Interfaces:
Collector,LeafCollector
- Direct Known Subclasses:
TermGroupFacetCollector
Deprecated.
Base class for computing grouped facets.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordDeprecated.Represents a facet entry with a value and a count.static classDeprecated.The grouped facet result.protected static classDeprecated.Contains the local grouped segment counts for a particular segment. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intDeprecated.protected final StringDeprecated.protected final BytesRefDeprecated.protected final StringDeprecated.protected int[]Deprecated.protected final List<GroupFacetCollector.SegmentResult> Deprecated.protected intDeprecated.protected intDeprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGroupFacetCollector(String groupField, String facetField, BytesRef facetPrefix) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract GroupFacetCollector.SegmentResultDeprecated.voidfinish()Deprecated.mergeSegmentResults(int size, int minCount, boolean orderByCount) Deprecated.UseTermGroupFacetCollectorManagerinstead.Deprecated.voidDeprecated.Methods inherited from class org.apache.lucene.search.SimpleCollector
collect, doSetNextReader, getLeafCollectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.search.LeafCollector
collect, collectRange, competitiveIterator
-
Field Details
-
groupField
Deprecated. -
facetField
Deprecated. -
facetPrefix
Deprecated. -
segmentResults
Deprecated. -
segmentFacetCounts
protected int[] segmentFacetCountsDeprecated. -
segmentTotalCount
protected int segmentTotalCountDeprecated. -
startFacetOrd
protected int startFacetOrdDeprecated. -
endFacetOrd
protected int endFacetOrdDeprecated.
-
-
Constructor Details
-
GroupFacetCollector
Deprecated.
-
-
Method Details
-
mergeSegmentResults
@Deprecated public GroupFacetCollector.GroupedFacetResult mergeSegmentResults(int size, int minCount, boolean orderByCount) throws IOException Deprecated.UseTermGroupFacetCollectorManagerinstead. Thesize,minCount, andorderByCountparameters are now passed to its constructor, and merging happens automatically insideIndexSearcher.search(org.apache.lucene.search.Query, org.apache.lucene.search.CollectorManager).Returns grouped facet results that were computed over zero or more segments. Grouped facet counts are merged from zero or more segment results.- Parameters:
size- The total number of facets to include. This is typically offset + limitminCount- The minimum count a facet entry should have to be included in the grouped facet resultorderByCount- Whether to sort the facet entries by facet entry count. Iffalsethen the facets are sorted lexicographically in ascending order.- Returns:
- grouped facet results
- Throws:
IOException- If I/O related errors occur during merging segment grouped facet counts.
-
finish
Deprecated.- Throws:
IOException
-
createSegmentResult
Deprecated.- Throws:
IOException
-
setScorer
Deprecated.- Specified by:
setScorerin interfaceLeafCollector- Overrides:
setScorerin classSimpleCollector- Throws:
IOException
-
scoreMode
Deprecated.
-
TermGroupFacetCollectorManagerinstead, which supports concurrent search.GroupedFacetResultandGroupedFacetResult.FacetEntryare now top-level classes.