Class ScriptedSimilarity.Field

java.lang.Object
org.elasticsearch.index.similarity.ScriptedSimilarity.Field
Enclosing class:
ScriptedSimilarity

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

    • 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.
    • getSumTotalTermFreq

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