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