Interface IndexValueFieldTypeDescriptor
- All Superinterfaces:
IndexFieldTypeDescriptor
- All Known Implementing Classes:
AbstractIndexValueFieldType
The type of a "value" field in the index,
exposing its various capabilities and accepted Java types.
- See Also:
-
Method Details
-
searchable
boolean searchable()- Returns:
trueif search predicates are supported on fields of this type. Some sorts may still be unsupported because they don't make sense (e.g. a "within circle" predicate on a string field).
-
sortable
boolean sortable()- Returns:
trueif sorts are supported on fields of this type. Some sorts may still be unsupported because they don't make sense (e.g. a distance sort aggregation on a string field).
-
projectable
boolean projectable()- Returns:
trueif projections are supported on fields of this type. Some projections may still be unsupported because they don't make sense (e.g. a distance projection aggregation on a string field).
-
aggregable
boolean aggregable()- Returns:
trueif aggregations are supported on fields of this type. Some aggregations may still be unsupported because they don't make sense (e.g. a range aggregation on an analyzed string field).
-
multivaluable
@Incubating boolean multivaluable()- Returns:
trueif the field type allows storing multiple values,falseotherwise.
-
dslArgumentClass
Class<?> dslArgumentClass()- Returns:
- The expected raw Java type of arguments passed to the DSL for this field.
- See Also:
-
projectedValueClass
Class<?> projectedValueClass()- Returns:
- The raw Java type of projected values for this field.
- See Also:
-
valueClass
Class<?> valueClass()- Returns:
- The raw Java type of values for this field.
This may not be the expected type for arguments passed to the DSL for this field,
nor the type of projected values for this field.
See
dslArgumentClass()
-
analyzerName
- Returns:
- The name of the analyzer assigned to this type, if any. Only ever set for String fields.
-
normalizerName
- Returns:
- The name of the normalizer assigned to this type, if any. Only ever set for String fields.
-
searchAnalyzerName
- Returns:
- The name of the search analyzer assigned to this type, if any.
Only ever set for String fields.
By default, the search analyzer is the same as the
analyzer.
-