Class ScriptedSimilarity.Field
java.lang.Object
org.elasticsearch.index.similarity.ScriptedSimilarity.Field
- Enclosing class:
- ScriptedSimilarity
Statistics that are specific to a given field.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Return the number of documents that have a value for this field.long
Return the sum ofScriptedSimilarity.Term.getDocFreq()
for all terms that exist in this field, or-1
if this statistic is not available.long
Return the sum ofScriptedSimilarity.Term.getTotalTermFreq()
for all terms that exist in this field, or-1
if this statistic is not available.
-
Method Details
-
getDocCount
public long getDocCount()Return the number of documents that have a value for this field. -
getSumDocFreq
public long getSumDocFreq()Return the sum ofScriptedSimilarity.Term.getDocFreq()
for all terms that exist in this field, or-1
if this statistic is not available. -
getSumTotalTermFreq
public long getSumTotalTermFreq()Return the sum ofScriptedSimilarity.Term.getTotalTermFreq()
for all terms that exist in this field, or-1
if this statistic is not available.
-