Class ScriptedSimilarity.Doc

  • Enclosing class:
    ScriptedSimilarity

    public static class ScriptedSimilarity.Doc
    extends java.lang.Object
    Statistics that are specific to a document.
    • Method Summary

      Modifier and Type Method Description
      float getFreq()
      Return the number of occurrences of the term in the current document for the considered field.
      int getLength()
      Return the number of tokens that the current document has in the considered field.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLength

        public int getLength()
        Return the number of tokens that the current document has in the considered field.
      • getFreq

        public float getFreq()
        Return the number of occurrences of the term in the current document for the considered field.