Class ScriptedSimilarity.Term
java.lang.Object
org.elasticsearch.index.similarity.ScriptedSimilarity.Term
- Enclosing class:
- ScriptedSimilarity
Statistics that are specific to a given term.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Return the number of documents that contain this term in the index.long
Return the total number of occurrences of this term in the index, or-1
if this statistic is not available.
-
Method Details
-
getDocFreq
public long getDocFreq()Return the number of documents that contain this term in the index. -
getTotalTermFreq
public long getTotalTermFreq()Return the total number of occurrences of this term in the index, or-1
if this statistic is not available.
-