Package org.apache.solr.ltr.interleaving
Class LTRInterleavingQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.solr.search.ExtendedQueryBase
-
- org.apache.solr.search.RankQuery
-
- org.apache.solr.search.AbstractReRankQuery
-
- org.apache.solr.ltr.search.LTRQuery
-
- org.apache.solr.ltr.interleaving.LTRInterleavingQuery
-
- All Implemented Interfaces:
ExtendedQuery
public class LTRInterleavingQuery extends LTRQuery
A learning to rank Query with Interleaving, will incapsulate two models, and delegate to it the rescoring of the documents.
-
-
Field Summary
-
Fields inherited from class org.apache.solr.search.AbstractReRankQuery
boostedPriority, mainQuery, reRankDocs, reRankOperator, reRankQueryRescorer, reRankScaler
-
-
Constructor Summary
Constructors Constructor Description LTRInterleavingQuery(Interleaving interleavingAlgorithm, LTRInterleavingScoringQuery[] rerankingQueries, int rerankDocs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
protected org.apache.lucene.search.Query
rewrite(org.apache.lucene.search.Query rewrittenMainQuery)
String
toString(String field)
RankQuery
wrap(org.apache.lucene.search.Query _mainQuery)
-
Methods inherited from class org.apache.solr.search.AbstractReRankQuery
createWeight, getMergeStrategy, getTopDocsCollector, rewrite, visit
-
Methods inherited from class org.apache.solr.search.ExtendedQueryBase
getCache, getCost, getOptions, getOptionsString, setCache, setCost
-
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.search.ExtendedQuery
getCostAppliedQuery
-
-
-
-
Constructor Detail
-
LTRInterleavingQuery
public LTRInterleavingQuery(Interleaving interleavingAlgorithm, LTRInterleavingScoringQuery[] rerankingQueries, int rerankDocs)
-
-
Method Detail
-
wrap
public RankQuery wrap(org.apache.lucene.search.Query _mainQuery)
-
rewrite
protected org.apache.lucene.search.Query rewrite(org.apache.lucene.search.Query rewrittenMainQuery) throws IOException
- Overrides:
rewrite
in classLTRQuery
- Throws:
IOException
-
-