Package org.apache.solr.ltr.search
Class LTRQParserPlugin.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.LTRQParserPlugin.LTRQuery
-
- All Implemented Interfaces:
ExtendedQuery
- Enclosing class:
- LTRQParserPlugin
public class LTRQParserPlugin.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, reRankQueryRescorer
-
-
Constructor Summary
Constructors Constructor Description LTRQuery(LTRScoringQuery scoringQuery, 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, getCacheSep, getCost, getOptions, getOptionsString, setCache, setCacheSep, setCost
-
-
-
-
Constructor Detail
-
LTRQuery
public LTRQuery(LTRScoringQuery scoringQuery, int reRankDocs)
-
-
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
-
-