Package org.apache.solr.ltr.search
Class LTRQuery
- 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
-
- All Implemented Interfaces:
ExtendedQuery
- Direct Known Subclasses:
LTRInterleavingQuery
public class LTRQuery extends AbstractReRankQuery
A learning to rank Query, will incapsulate a learning to rank model, 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 Modifier Constructor Description LTRQuery(LTRScoringQuery scoringQuery, int reRankDocs)
protected
LTRQuery(LTRScoringQuery scoringQuery, int reRankDocs, LTRRescorer rescorer)
-
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
-
LTRQuery
public LTRQuery(LTRScoringQuery scoringQuery, int reRankDocs)
-
LTRQuery
protected LTRQuery(LTRScoringQuery scoringQuery, int reRankDocs, LTRRescorer rescorer)
-
-
Method Detail
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
equals
public boolean equals(Object o)
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
wrap
public RankQuery wrap(org.apache.lucene.search.Query _mainQuery)
- Overrides:
wrap
in classAbstractReRankQuery
-
toString
public String toString(String field)
- Overrides:
toString
in classExtendedQueryBase
-
rewrite
protected org.apache.lucene.search.Query rewrite(org.apache.lucene.search.Query rewrittenMainQuery) throws IOException
- Specified by:
rewrite
in classAbstractReRankQuery
- Throws:
IOException
-
-