Class ScriptedSimilarity.Term

  • Enclosing class:
    ScriptedSimilarity

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

      Modifier and Type Method Description
      long getDocFreq()
      Return the number of documents that contain this term in the index.
      long getTotalTermFreq()
      Return the total number of occurrences of this term in the index, 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
    • Method Detail

      • getDocFreq

        public long getDocFreq()
        Return the number of documents that contain this term in the index.
      • getTotalTermFreq

        public long getTotalTermFreq()
        Return the total number of occurrences of this term in the index, or -1 if this statistic is not available.