Class FacetsCollector

java.lang.Object
org.apache.lucene.search.SimpleCollector
org.apache.lucene.facet.FacetsCollector
All Implemented Interfaces:
Collector, LeafCollector
Direct Known Subclasses:
FacetsCollectorManager.ReducedFacetsCollector, RandomSamplingFacetsCollector

public class FacetsCollector extends SimpleCollector
Collects hits for subsequent faceting. Once you've run a search and collect hits into this, instantiate one of the Facets subclasses to do the facet counting. Use the search utility methods to perform an "ordinary" search but also collect into a Collector.
  • Field Details

  • Constructor Details

    • FacetsCollector

      public FacetsCollector()
      Default constructor
    • FacetsCollector

      public FacetsCollector(boolean keepScores)
      Create this; if keepScores is true then a float[] is allocated to hold score of all hits.
  • Method Details