Package org.apache.solr.ltr
Class LTRScoringQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.solr.ltr.LTRScoringQuery
-
- All Implemented Interfaces:
org.apache.lucene.util.Accountable
public class LTRScoringQuery extends org.apache.lucene.search.Query implements org.apache.lucene.util.Accountable
The ranking query that is run, reranking results using the LTRScoringModel algorithm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LTRScoringQuery.FeatureInfo
class
LTRScoringQuery.ModelWeight
-
Constructor Summary
Constructors Constructor Description LTRScoringQuery(LTRScoringModel ltrScoringModel)
LTRScoringQuery(LTRScoringModel ltrScoringModel, boolean extractAllFeatures)
LTRScoringQuery(LTRScoringModel ltrScoringModel, Map<String,String[]> externalFeatureInfo, boolean extractAllFeatures, LTRThreadModule ltrThreadMgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LTRScoringQuery.ModelWeight
createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)
boolean
equals(Object o)
Map<String,String[]>
getExternalFeatureInfo()
FeatureLogger
getFeatureLogger()
org.apache.lucene.search.Query
getOriginalQuery()
SolrQueryRequest
getRequest()
LTRScoringModel
getScoringModel()
int
hashCode()
long
ramBytesUsed()
void
setFeatureLogger(FeatureLogger fl)
void
setOriginalQuery(org.apache.lucene.search.Query originalQuery)
void
setRequest(SolrQueryRequest request)
String
toString(String field)
void
visit(org.apache.lucene.search.QueryVisitor visitor)
-
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
-
-
-
Constructor Detail
-
LTRScoringQuery
public LTRScoringQuery(LTRScoringModel ltrScoringModel)
-
LTRScoringQuery
public LTRScoringQuery(LTRScoringModel ltrScoringModel, boolean extractAllFeatures)
-
LTRScoringQuery
public LTRScoringQuery(LTRScoringModel ltrScoringModel, Map<String,String[]> externalFeatureInfo, boolean extractAllFeatures, LTRThreadModule ltrThreadMgr)
-
-
Method Detail
-
getScoringModel
public LTRScoringModel getScoringModel()
-
setFeatureLogger
public void setFeatureLogger(FeatureLogger fl)
-
getFeatureLogger
public FeatureLogger getFeatureLogger()
-
setOriginalQuery
public void setOriginalQuery(org.apache.lucene.search.Query originalQuery)
-
getOriginalQuery
public org.apache.lucene.search.Query getOriginalQuery()
-
setRequest
public void setRequest(SolrQueryRequest request)
-
getRequest
public SolrQueryRequest getRequest()
-
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
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor)
- Overrides:
visit
in classorg.apache.lucene.search.Query
-
createWeight
public LTRScoringQuery.ModelWeight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws IOException
- Overrides:
createWeight
in classorg.apache.lucene.search.Query
- Throws:
IOException
-
toString
public String toString(String field)
- Specified by:
toString
in classorg.apache.lucene.search.Query
-
ramBytesUsed
public long ramBytesUsed()
- Specified by:
ramBytesUsed
in interfaceorg.apache.lucene.util.Accountable
-
-