Class ScriptedSimilarity.Doc

  • Enclosing class:
    ScriptedSimilarity

    public static class ScriptedSimilarity.Doc
    extends Object
    Statistics that are specific to a document.
    • 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.