Package org.apache.lucene.sandbox.facet
Class FacetFieldCollector
- java.lang.Object
-
- org.apache.lucene.sandbox.facet.FacetFieldCollector
-
- All Implemented Interfaces:
Collector
public final class FacetFieldCollector extends Object implements Collector
Collector
that brings togetherFacetCutter
andFacetRecorder
to compute facets during collection phase.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description FacetFieldCollector(FacetCutter facetCutter, FacetRecorder facetRecorder)
Collector for cutter+recorder pair.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeafCollector
getLeafCollector(LeafReaderContext context)
ScoreMode
scoreMode()
-
-
-
Constructor Detail
-
FacetFieldCollector
public FacetFieldCollector(FacetCutter facetCutter, FacetRecorder facetRecorder)
Collector for cutter+recorder pair.
-
-
Method Detail
-
getLeafCollector
public LeafCollector getLeafCollector(LeafReaderContext context) throws IOException
- Specified by:
getLeafCollector
in interfaceCollector
- Throws:
IOException
-
-