Class MultiNormsLeafSimScorer


  • final class MultiNormsLeafSimScorer
    extends java.lang.Object
    Copy of LeafSimScorer that sums document's norms from multiple fields.

    For all fields, norms must be encoded using SmallFloat.intToByte4(int). This scorer also requires that either all fields or no fields have norms enabled. Having only some fields with norms enabled can result in errors or undefined behavior.

    • Method Detail

      • getNormValue

        private long getNormValue​(int doc)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • score

        public float score​(int doc,
                           float freq)
                    throws java.io.IOException
        Score the provided document assuming the given term document frequency. This method must be called on non-decreasing sequences of doc ids.
        Throws:
        java.io.IOException
        See Also:
        Similarity.SimScorer.score(float, long)