Class 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
    • Method Detail

      • setFeatureLogger

        public void setFeatureLogger​(FeatureLogger fl)
      • setOriginalQuery

        public void setOriginalQuery​(org.apache.lucene.search.Query originalQuery)
      • getOriginalQuery

        public org.apache.lucene.search.Query getOriginalQuery()
      • getExternalFeatureInfo

        public Map<String,​String[]> getExternalFeatureInfo()
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class org.apache.lucene.search.Query
      • equals

        public boolean equals​(Object o)
        Specified by:
        equals in class org.apache.lucene.search.Query
      • visit

        public void visit​(org.apache.lucene.search.QueryVisitor visitor)
        Overrides:
        visit in class org.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 class org.apache.lucene.search.Query
        Throws:
        IOException
      • toString

        public String toString​(String field)
        Specified by:
        toString in class org.apache.lucene.search.Query
      • ramBytesUsed

        public long ramBytesUsed()
        Specified by:
        ramBytesUsed in interface org.apache.lucene.util.Accountable