- Enclosing class:
public static class ScriptedSimilarity.Doc extends Object
Statistics that are specific to a document.
getLengthpublic int getLength()Return the number of tokens that the current document has in the considered field.
getFreqpublic float getFreq()Return the number of occurrences of the term in the current document for the considered field.