Class ScriptedSimilarity.Field

  • Enclosing class:

    public static class ScriptedSimilarity.Field
    extends java.lang.Object
    Statistics that are specific to a given field.
    • Method Detail

      • getDocCount

        public long getDocCount()
        Return the number of documents that have a value for this field.
      • getSumDocFreq

        public long getSumDocFreq()
        Return the sum of ScriptedSimilarity.Term.getDocFreq() for all terms that exist in this field, or -1 if this statistic is not available.