Class LTRScoringQuery

  • All Implemented Interfaces:
    org.apache.lucene.util.Accountable
    Direct Known Subclasses:
    LTRInterleavingScoringQuery

    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

      • getScoringModelName

        public String getScoringModelName()
      • setFeatureLogger

        public void setFeatureLogger​(FeatureLogger logger)
      • 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)
        Specified by:
        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