Package org.apache.solr.search
Class ReRankCollector
- java.lang.Object
-
- org.apache.lucene.search.TopDocsCollector<org.apache.lucene.search.ScoreDoc>
-
- org.apache.solr.search.ReRankCollector
-
- All Implemented Interfaces:
org.apache.lucene.search.Collector
public class ReRankCollector extends org.apache.lucene.search.TopDocsCollector<org.apache.lucene.search.ScoreDoc>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReRankCollector.BoostedComp
-
Constructor Summary
Constructors Constructor Description ReRankCollector(int reRankDocs, int length, org.apache.lucene.search.Rescorer reRankQueryRescorer, QueryCommand cmd, org.apache.lucene.search.IndexSearcher searcher, Set<org.apache.lucene.util.BytesRef> boostedPriority)
ReRankCollector(int reRankDocs, int length, org.apache.lucene.search.Rescorer reRankQueryRescorer, QueryCommand cmd, org.apache.lucene.search.IndexSearcher searcher, Set<org.apache.lucene.util.BytesRef> boostedPriority, ReRankScaler reRankScaler, ReRankOperator reRankOperator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.LeafCollector
getLeafCollector(org.apache.lucene.index.LeafReaderContext context)
int
getTotalHits()
org.apache.lucene.search.ScoreMode
scoreMode()
org.apache.lucene.search.TopDocs
topDocs(int start, int howMany)
-
Methods inherited from class org.apache.lucene.search.TopDocsCollector
newTopDocs, populateResults, topDocs, topDocs, topDocsSize
-
-
-
-
Constructor Detail
-
ReRankCollector
public ReRankCollector(int reRankDocs, int length, org.apache.lucene.search.Rescorer reRankQueryRescorer, QueryCommand cmd, org.apache.lucene.search.IndexSearcher searcher, Set<org.apache.lucene.util.BytesRef> boostedPriority, ReRankScaler reRankScaler, ReRankOperator reRankOperator) throws IOException
- Throws:
IOException
-
ReRankCollector
public ReRankCollector(int reRankDocs, int length, org.apache.lucene.search.Rescorer reRankQueryRescorer, QueryCommand cmd, org.apache.lucene.search.IndexSearcher searcher, Set<org.apache.lucene.util.BytesRef> boostedPriority) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getTotalHits
public int getTotalHits()
- Overrides:
getTotalHits
in classorg.apache.lucene.search.TopDocsCollector<org.apache.lucene.search.ScoreDoc>
-
getLeafCollector
public org.apache.lucene.search.LeafCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext context) throws IOException
- Throws:
IOException
-
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode()
-
topDocs
public org.apache.lucene.search.TopDocs topDocs(int start, int howMany)
- Overrides:
topDocs
in classorg.apache.lucene.search.TopDocsCollector<org.apache.lucene.search.ScoreDoc>
-
-