Class ScriptedSimilarity.Field

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

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

    Modifier and Type Method Description
    long getDocCount()
    Return the number of documents that have a value for this field.
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait