Class AbstractIndexValueFieldType<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>,F>
java.lang.Object
org.hibernate.search.engine.backend.types.spi.AbstractIndexValueFieldType<SC,N,F>
- All Implemented Interfaces:
IndexValueFieldTypeDescriptor
,IndexFieldType<F>
,SearchIndexNodeTypeContext<SC,
,N> SearchIndexValueFieldTypeContext<SC,
N, F>
public abstract class AbstractIndexValueFieldType<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>,F>
extends Object
implements IndexValueFieldTypeDescriptor, IndexFieldType<F>, SearchIndexValueFieldTypeContext<SC,N,F>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
AbstractIndexValueFieldType.Builder<SC extends SearchIndexScope<?>,
N extends SearchIndexValueFieldContext<SC>, F> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
final Class<?>
final DslConverter<?,
F> boolean
final boolean
final Class<?>
final ProjectionConverter<F,
?> final <T> SearchQueryElementFactory<? extends T,
? super SC, ? super N> final DslConverter<F,
F> final ProjectionConverter<F,
F> final boolean
final boolean
sortable()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.search.engine.search.common.spi.SearchIndexValueFieldTypeContext
dslConverter, projectionConverter
-
Constructor Details
-
AbstractIndexValueFieldType
-
-
Method Details
-
toString
-
valueClass
- Specified by:
valueClass
in interfaceIndexValueFieldTypeDescriptor
- Specified by:
valueClass
in interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,
N extends SearchIndexValueFieldContext<SC>, F> - 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
IndexValueFieldTypeDescriptor.dslArgumentClass()
-
searchable
public final boolean searchable()- Specified by:
searchable
in interfaceIndexValueFieldTypeDescriptor
- 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
public final boolean sortable()- Specified by:
sortable
in interfaceIndexValueFieldTypeDescriptor
- 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
public final boolean projectable()- Specified by:
projectable
in interfaceIndexValueFieldTypeDescriptor
- 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
public final boolean aggregable()- Specified by:
aggregable
in interfaceIndexValueFieldTypeDescriptor
- 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
- Specified by:
dslArgumentClass
in interfaceIndexValueFieldTypeDescriptor
- Returns:
- The expected raw Java type of arguments passed to the DSL for this field.
- See Also:
-
dslConverter
- Specified by:
dslConverter
in interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,
N extends SearchIndexValueFieldContext<SC>, F>
-
rawDslConverter
- Specified by:
rawDslConverter
in interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,
N extends SearchIndexValueFieldContext<SC>, F>
-
projectedValueClass
- Specified by:
projectedValueClass
in interfaceIndexValueFieldTypeDescriptor
- Returns:
- The raw Java type of projected values for this field.
- See Also:
-
projectionConverter
- Specified by:
projectionConverter
in interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,
N extends SearchIndexValueFieldContext<SC>, F>
-
rawProjectionConverter
- Specified by:
rawProjectionConverter
in interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,
N extends SearchIndexValueFieldContext<SC>, F>
-
analyzerName
- Specified by:
analyzerName
in interfaceIndexValueFieldTypeDescriptor
- Returns:
- The name of the analyzer assigned to this type, if any. Only ever set for String fields.
-
normalizerName
- Specified by:
normalizerName
in interfaceIndexValueFieldTypeDescriptor
- Returns:
- The name of the normalizer assigned to this type, if any. Only ever set for String fields.
-
searchAnalyzerName
- Specified by:
searchAnalyzerName
in interfaceIndexValueFieldTypeDescriptor
- 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
.
-
queryElementFactory
public final <T> SearchQueryElementFactory<? extends T,? super SC, queryElementFactory? super N> (SearchQueryElementTypeKey<T> key) - Specified by:
queryElementFactory
in interfaceSearchIndexNodeTypeContext<SC extends SearchIndexScope<?>,
N extends SearchIndexValueFieldContext<SC>>
-
highlighterTypeSupported
- Specified by:
highlighterTypeSupported
in interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,
N extends SearchIndexValueFieldContext<SC>, F>
-