Class QueryHitsQuery.QueryHitsQueryScorer

  • Enclosing class:
    QueryHitsQuery

    public class QueryHitsQuery.QueryHitsQueryScorer
    extends org.apache.lucene.search.Scorer
    the scorer implementation for this query.
    • Nested Class Summary

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

        org.apache.lucene.search.Scorer.ScorerVisitor<P extends org.apache.lucene.search.Query,​C extends org.apache.lucene.search.Query,​S extends org.apache.lucene.search.Scorer>
    • Field Summary

      • Fields inherited from class org.apache.lucene.search.Scorer

        weight
      • Fields inherited from class org.apache.lucene.search.DocIdSetIterator

        NO_MORE_DOCS
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected QueryHitsQueryScorer​(org.apache.lucene.index.IndexReader reader, org.apache.lucene.search.Similarity similarity)
      Creates a new scorer.
    • Constructor Detail

      • QueryHitsQueryScorer

        protected QueryHitsQueryScorer​(org.apache.lucene.index.IndexReader reader,
                                       org.apache.lucene.search.Similarity similarity)
                                throws IOException
        Creates a new scorer.
        Parameters:
        reader - the index reader.
        similarity - the similarity implementation.
        Throws:
        IOException - if an error occurs while reading from the index.
    • Method Detail

      • nextDoc

        public int nextDoc()
                    throws IOException
        Specified by:
        nextDoc in class org.apache.lucene.search.DocIdSetIterator
        Throws:
        IOException
      • docID

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

        public float score()
                    throws IOException
        Specified by:
        score in class org.apache.lucene.search.Scorer
        Throws:
        IOException
      • advance

        public int advance​(int target)
                    throws IOException
        Specified by:
        advance in class org.apache.lucene.search.DocIdSetIterator
        Throws:
        IOException