Interface IndexValueFieldTypeDescriptor
-
- All Known Implementing Classes:
AbstractIndexValueFieldType
public interface IndexValueFieldTypeDescriptor
The type of a "value" field in the index, exposing its various capabilities and accepted Java types.- See Also:
IndexValueFieldDescriptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
aggregable()
Optional<String>
analyzerName()
Class<?>
dslArgumentClass()
Optional<String>
normalizerName()
boolean
projectable()
Class<?>
projectedValueClass()
boolean
searchable()
Optional<String>
searchAnalyzerName()
boolean
sortable()
Class<?>
valueClass()
-
-
-
Method Detail
-
searchable
boolean searchable()
- Returns:
true
if 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:
true
if 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:
true
if 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:
true
if 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).
-
dslArgumentClass
Class<?> dslArgumentClass()
- Returns:
- The expected raw Java type of arguments passed to the DSL for this field.
- See Also:
ValueConvert.YES
,ToDocumentValueConverter
-
projectedValueClass
Class<?> projectedValueClass()
- Returns:
- The raw Java type of projected values for this field.
- See Also:
ValueConvert.YES
,FromDocumentValueConverter
-
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
Optional<String> analyzerName()
- Returns:
- The name of the analyzer assigned to this type, if any. Only ever set for String fields.
-
normalizerName
Optional<String> normalizerName()
- Returns:
- The name of the normalizer assigned to this type, if any. Only ever set for String fields.
-
-