Package org.apache.lucene.search
Class IndexSearcher.ShortcutHitCountCollector
java.lang.Object
org.apache.lucene.search.IndexSearcher.ShortcutHitCountCollector
- All Implemented Interfaces:
Collector
- Enclosing class:
- IndexSearcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TotalHitCountCollector
private final Weight
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLeafCollector
(LeafReaderContext context) Create a newcollector
to collect the given context.Indicates what features are required from the scorer.
-
Field Details
-
weight
-
totalHitCountCollector
-
weightCount
private int weightCount
-
-
Constructor Details
-
ShortcutHitCountCollector
ShortcutHitCountCollector(Weight weight)
-
-
Method Details
-
getLeafCollector
Description copied from interface:Collector
Create a newcollector
to collect the given context.- Specified by:
getLeafCollector
in interfaceCollector
- Parameters:
context
- next atomic reader context- Throws:
IOException
-
scoreMode
Description copied from interface:Collector
Indicates what features are required from the scorer.
-