Class FilterScorable


  • public class FilterScorable
    extends Scorable
    Filter a Scorable, intercepting methods and optionally changing their return values The default implementation simply passes all calls to its delegate, with the exception of Scorable.setMinCompetitiveScore(float) which defaults to a no-op.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Scorable in  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int docID()
      Returns the doc ID that is currently being scored.
      java.util.Collection<Scorable.ChildScorable> getChildren()
      Returns child sub-scorers positioned on the current document
      float score()
      Returns the score of the current document matching the query.
      • Methods inherited from class java.lang.Object

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

      • FilterScorable

        public FilterScorable​(Scorable in)
        Filter a scorer
        Parameters:
        in - the scorer to filter
    • Method Detail

      • score

        public float score()
                    throws java.io.IOException
        Description copied from class: Scorable
        Returns the score of the current document matching the query.
        Specified by:
        score in class Scorable
        Throws:
        java.io.IOException
      • docID

        public int docID()
        Description copied from class: Scorable
        Returns the doc ID that is currently being scored.
        Specified by:
        docID in class Scorable
      • getChildren

        public java.util.Collection<Scorable.ChildScorable> getChildren()
                                                                 throws java.io.IOException
        Description copied from class: Scorable
        Returns child sub-scorers positioned on the current document
        Overrides:
        getChildren in class Scorable
        Throws:
        java.io.IOException