Class ScriptedSimilarity.Doc
- java.lang.Object
-
- org.elasticsearch.index.similarity.ScriptedSimilarity.Doc
-
- Enclosing class:
- ScriptedSimilarity
public static class ScriptedSimilarity.Doc extends java.lang.ObjectStatistics that are specific to a document.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetFreq()Return the number of occurrences of the term in the current document for the considered field.intgetLength()Return the number of tokens that the current document has in the considered field.
-
-
-
Method Detail
-
getLength
public int getLength() throws java.io.IOExceptionReturn the number of tokens that the current document has in the considered field.- Throws:
java.io.IOException
-
getFreq
public float getFreq()
Return the number of occurrences of the term in the current document for the considered field.
-
-