java.lang.Object
org.apache.lucene.search.Scorable
org.apache.lucene.search.Scorer
org.elasticsearch.common.lucene.search.function.MinScoreScorer

public final class MinScoreScorer extends org.apache.lucene.search.Scorer
A Scorer that filters out documents that have a score that is lower than a configured constant.
  • Nested Class Summary

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

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

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

    weight
  • Constructor Summary

    Constructors
    Constructor
    Description
    MinScoreScorer(org.apache.lucene.search.Weight weight, org.apache.lucene.search.Scorer scorer, float minScore)
     
    MinScoreScorer(org.apache.lucene.search.Weight weight, org.apache.lucene.search.Scorer scorer, float minScore, float boost)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    advanceShallow(int target)
     
    int
     
    float
    getMaxScore(int upTo)
     
    org.apache.lucene.search.DocIdSetIterator
     
    float
     
    org.apache.lucene.search.TwoPhaseIterator
     

    Methods inherited from class org.apache.lucene.search.Scorer

    getWeight

    Methods inherited from class org.apache.lucene.search.Scorable

    getChildren, setMinCompetitiveScore, smoothingScore

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MinScoreScorer

      public MinScoreScorer(org.apache.lucene.search.Weight weight, org.apache.lucene.search.Scorer scorer, float minScore)
    • MinScoreScorer

      public MinScoreScorer(org.apache.lucene.search.Weight weight, org.apache.lucene.search.Scorer scorer, float minScore, float boost)
  • Method Details

    • docID

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

      public float score()
      Specified by:
      score in class org.apache.lucene.search.Scorable
    • advanceShallow

      public int advanceShallow(int target) throws IOException
      Overrides:
      advanceShallow in class org.apache.lucene.search.Scorer
      Throws:
      IOException
    • getMaxScore

      public float getMaxScore(int upTo) throws IOException
      Specified by:
      getMaxScore in class org.apache.lucene.search.Scorer
      Throws:
      IOException
    • iterator

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

      public org.apache.lucene.search.TwoPhaseIterator twoPhaseIterator()
      Overrides:
      twoPhaseIterator in class org.apache.lucene.search.Scorer