Class FilterCollector

java.lang.Object
org.apache.lucene.search.FilterCollector
org.apache.solr.search.grouping.collector.FilterCollector
All Implemented Interfaces:
org.apache.lucene.search.Collector

public class FilterCollector extends org.apache.lucene.search.FilterCollector
A collector that filters incoming doc ids that are not in the filter.
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Field Summary

    Fields inherited from class org.apache.lucene.search.FilterCollector

    in
  • Constructor Summary

    Constructors
    Constructor
    Description
    FilterCollector(DocSet filter, org.apache.lucene.search.Collector delegate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.search.Collector
    Returns the delegate collector
    org.apache.lucene.search.LeafCollector
    getLeafCollector(org.apache.lucene.index.LeafReaderContext context)
     
    int
     

    Methods inherited from class org.apache.lucene.search.FilterCollector

    scoreMode, setWeight, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FilterCollector

      public FilterCollector(DocSet filter, org.apache.lucene.search.Collector delegate)
  • Method Details

    • getLeafCollector

      public org.apache.lucene.search.LeafCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Specified by:
      getLeafCollector in interface org.apache.lucene.search.Collector
      Overrides:
      getLeafCollector in class org.apache.lucene.search.FilterCollector
      Throws:
      IOException
    • getMatches

      public int getMatches()
    • getDelegate

      public org.apache.lucene.search.Collector getDelegate()
      Returns the delegate collector
      Returns:
      the delegate collector