Class ScriptedSimilarity.Doc
- java.lang.Object
-
- org.elasticsearch.index.similarity.ScriptedSimilarity.Doc
-
- Enclosing class:
- ScriptedSimilarity
public static class ScriptedSimilarity.Doc extends java.lang.Object
Statistics that are specific to a document.
-
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
getLength
public int getLength() throws java.io.IOException
Return 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.
-
-