Class NormValueSource

java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.lucene.queries.function.valuesource.NormValueSource

public class NormValueSource extends ValueSource
Function that returns the decoded norm for every document.

Note that the configured Similarity for the field must be a subclass of TFIDFSimilarity and the contribution of the TF needs to be 1 when the freq is 1 and the contribution of the IDF needs to be 1 when docFreq == docCount == 1.

  • Field Details

    • field

      protected final String field
  • Constructor Details

    • NormValueSource

      public NormValueSource(String field)
  • Method Details