Class ScoreFunction

    • Constructor Detail

      • ScoreFunction

        protected ScoreFunction​(CombineFunction scoreCombiner)
    • Method Detail

      • getDefaultScoreCombiner

        public CombineFunction getDefaultScoreCombiner()
      • getLeafScoreFunction

        public abstract LeafScoreFunction getLeafScoreFunction​(org.apache.lucene.index.LeafReaderContext ctx)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • needsScores

        public abstract boolean needsScores()
        Indicates if document scores are needed by this function.
        Returns:
        true if scores are needed.
      • equals

        public final boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getWeight

        public float getWeight()
      • doEquals

        protected abstract boolean doEquals​(ScoreFunction other)
        Indicates whether some other ScoreFunction object of the same type is "equal to" this one.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • doHashCode

        protected abstract int doHashCode()
      • rewrite

        protected ScoreFunction rewrite​(org.apache.lucene.index.IndexReader reader)
                                 throws java.io.IOException
        Throws:
        java.io.IOException