Package org.apache.lucene.search
Class FilterCollector
java.lang.Object
org.apache.lucene.search.FilterCollector
- All Implemented Interfaces:
Collector
- Direct Known Subclasses:
CachingCollector,PositiveScoresOnlyCollector
Collector delegator.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLeafCollector(LeafReaderContext context) Create a newcollectorto collect the given context.Indicates what features are required from the scorer.voidSet theWeightthat will be used to produce scorers that will feedLeafCollectors.toString()
-
Field Details
-
in
-
-
Constructor Details
-
FilterCollector
Sole constructor.
-
-
Method Details
-
getLeafCollector
Description copied from interface:CollectorCreate a newcollectorto collect the given context.- Specified by:
getLeafCollectorin interfaceCollector- Parameters:
context- next atomic reader context- Throws:
IOException
-
setWeight
Description copied from interface:CollectorSet theWeightthat will be used to produce scorers that will feedLeafCollectors. This is typically useful to have access toWeight.count(org.apache.lucene.index.LeafReaderContext)fromCollector.getLeafCollector(org.apache.lucene.index.LeafReaderContext). -
toString
-
scoreMode
Description copied from interface:CollectorIndicates what features are required from the scorer.
-