Interface SearchStats
- All Known Implementing Classes:
SearchContextStats,SearchStats.EmptySearchStats,SearchStats.UnsupportedSearchStats
public interface SearchStats
Interface for determining information about fields in the index.
This is used by the optimizer to make decisions about how to optimize queries.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordWhen there are no search stats available, for example when there are no search contexts, we have static results.static classA default implementat that throwsUnsupportedOperationExceptionon all methods. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleandefault StringReturns the value for a field if it's a constant (eg.longcount()longcount(FieldAttribute.FieldName field) longcount(FieldAttribute.FieldName field, org.apache.lucene.util.BytesRef value) booleanexists(FieldAttribute.FieldName field) booleanbooleanbooleanbooleanmax(FieldAttribute.FieldName field) min(FieldAttribute.FieldName field)
-
Field Details
-
EMPTY
-
-
Method Details
-
exists
-
isIndexed
-
hasDocValues
-
hasExactSubfield
-
count
long count() -
count
-
count
-
min
-
max
-
isSingleValue
-
canUseEqualityOnSyntheticSourceDelegate
-
constantValue
Returns the value for a field if it's a constant (eg. a constant_keyword with only one value for the involved indices). NULL if the field is not a constant.
-