Class Feature.FeatureWeight.FeatureScorer

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable

        org.apache.lucene.search.Scorable.ChildScorable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.lucene.search.DocIdSetIterator itr  
      protected String name  
      • Fields inherited from class org.apache.lucene.search.Scorer

        weight
    • Field Detail

      • name

        protected final String name
      • itr

        protected final org.apache.lucene.search.DocIdSetIterator itr
    • Constructor Detail

      • FeatureScorer

        public FeatureScorer​(Feature.FeatureWeight weight,
                             org.apache.lucene.search.DocIdSetIterator itr)
    • Method Detail

      • score

        public abstract float score()
                             throws IOException
        Specified by:
        score in class org.apache.lucene.search.Scorable
        Throws:
        IOException
      • setDocInfo

        public void setDocInfo​(DocInfo docInfo)
        Used to provide context from initial score steps to later reranking steps.
      • getDocInfo

        public DocInfo getDocInfo()
      • docID

        public int docID()
        Specified by:
        docID in class org.apache.lucene.search.Scorable
      • iterator

        public org.apache.lucene.search.DocIdSetIterator iterator()
        Specified by:
        iterator in class org.apache.lucene.search.Scorer