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) default MappedFieldTypeReturns the mapped field type for the given field name, or null if the field is not found.booleanbooleanbooleanbooleanmax(FieldAttribute.FieldName field) min(FieldAttribute.FieldName field) booleansupportsLoaderConfig(FieldAttribute.FieldName name, BlockLoaderFunctionConfig config, MappedFieldType.FieldExtractPreference preference) Do all fields with the matching name support this loader config?Returns the target shards and their index metadata.
-
Field Details
-
EMPTY
-
-
Method Details
-
exists
-
isIndexed
-
hasDocValues
-
hasExactSubfield
-
count
long count() -
count
-
count
-
min
-
max
-
isSingleValue
-
canUseEqualityOnSyntheticSourceDelegate
-
supportsLoaderConfig
boolean supportsLoaderConfig(FieldAttribute.FieldName name, BlockLoaderFunctionConfig config, MappedFieldType.FieldExtractPreference preference) Do all fields with the matching name support this loader config? -
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. -
fieldType
Returns the mapped field type for the given field name, or null if the field is not found. -
targetShards
Map<ShardId,IndexMetadata> targetShards()Returns the target shards and their index metadata.
-