Interface PropertyMappingStep
- All Known Subinterfaces:
AssociationInverseSideOptionsStep
,IndexingDependencyOptionsStep
,PropertyMappingDocumentIdOptionsStep
,PropertyMappingFieldOptionsStep<S>
,PropertyMappingFullTextFieldOptionsStep
,PropertyMappingGenericFieldOptionsStep
,PropertyMappingIndexedEmbeddedStep
,PropertyMappingKeywordFieldOptionsStep
,PropertyMappingNonFullTextFieldOptionsStep<S>
,PropertyMappingScaledNumberFieldOptionsStep
,PropertyMappingStandardFieldOptionsStep<S>
,PropertyMappingVectorFieldOptionsStep
-
Method Summary
Modifier and TypeMethodDescriptionassociationInverseSide
(PojoModelPathValueNode inversePath) Assuming the property represents an association on a entity type A to entity type B, defines the inverse side of an association, i.e. the path from B to A.default PropertyMappingStep
binder
(PropertyBinder binder) Define a property binder, responsible for creating a bridge.binder
(PropertyBinder binder, Map<String, Object> params) Define a property binder, responsible for creating a bridge.Maps the property to the identifier of documents in the index.Maps the property to a full-text field in the index with the same name as this property.fullTextField
(String relativeFieldName) Maps the property to a full-text field in the index with a custom name.Maps the property to a field of standard type in the index with the same name as this property.genericField
(String relativeFieldName) Maps the property to a field of standard type in the index with a custom name.Maps the property to an object field whose fields are the same as those defined in the property type, using the name of this property as the name of the object field.indexedEmbedded
(String relativeFieldName) Maps the property to an object field whose fields are the same as those defined in the property type, using the given custom name as the name of the object field.Defines how a dependency of the indexing process to this property should affect automatic reindexing.Maps the property to a keyword field in the index with the same name as this property.keywordField
(String relativeFieldName) Maps the property to a keyword field in the index with a custom name.default PropertyMappingStep
marker
(MarkerBinder binder) Define a marker binder, responsible for creating a marker object.marker
(MarkerBinder binder, Map<String, Object> params) Define a marker binder, responsible for creating a marker object.Maps the property to a field of non-standard type in the index with the same name as this property.nonStandardField
(String relativeFieldName) Maps the property to a field of non-standard type in the index with a custom name.Maps the property to a scaled number field in the index with the same name as this property.scaledNumberField
(String relativeFieldName) Maps the property to a scaled number field in the index with a custom name.Maps the property to a vector field in the index with the same name as this property.vectorField
(int dimension) Maps the property to a vector field in the index with the same name as this property.vectorField
(int dimension, String relativeFieldName) Maps the property to a vector field in the index with a custom name.vectorField
(String relativeFieldName) Maps the property to a vector field in the index with a custom name.
-
Method Details
-
hostingType
TypeMappingStep hostingType()- Returns:
- A DSL step where the mapping can be defined for the type hosting this property.
-
documentId
PropertyMappingDocumentIdOptionsStep documentId()Maps the property to the identifier of documents in the index.This is only taken into account on
Indexed
types.- Returns:
- A DSL step where the document ID mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
binder
Define a property binder, responsible for creating a bridge. To pass some parameters to the bridge, use the methodbinder(PropertyBinder, Map)
instead.- Parameters:
binder
- APropertyBinder
responsible for creating a bridge.- Returns:
this
, for method chaining.- See Also:
-
binder
Define a property binder, responsible for creating a bridge. With this method it is possible to pass a set of parameters to the binder.- Parameters:
binder
- APropertyBinder
responsible for creating a bridge.params
- The parameters to pass to the binder.- Returns:
this
, for method chaining.
-
marker
Define a marker binder, responsible for creating a marker object. To use some parameters to create the marker object, use the methodmarker(MarkerBinder, Map)
instead.- Parameters:
binder
- AMarkerBinder
responsible for creating a marker object.- Returns:
this
, for method chaining.- See Also:
-
marker
Define a marker binder, responsible for creating a marker object. With this method it is possible to pass a set of parameters to the binder, so that they can be used to create the marker object.- Parameters:
binder
- AMarkerBinder
responsible for creating a marker object.params
- The parameters to pass to the binder.- Returns:
this
, for method chaining.- See Also:
-
genericField
PropertyMappingGenericFieldOptionsStep genericField()Maps the property to a field of standard type in the index with the same name as this property.- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
genericField
Maps the property to a field of standard type in the index with a custom name.- Parameters:
relativeFieldName
- The name of the index field.- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
fullTextField
PropertyMappingFullTextFieldOptionsStep fullTextField()Maps the property to a full-text field in the index with the same name as this property.- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
fullTextField
Maps the property to a full-text field in the index with a custom name.- Parameters:
relativeFieldName
- The name of the index field.- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
keywordField
PropertyMappingKeywordFieldOptionsStep keywordField()Maps the property to a keyword field in the index with the same name as this property.- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
keywordField
Maps the property to a keyword field in the index with a custom name.- Parameters:
relativeFieldName
- The name of the index field.- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
scaledNumberField
PropertyMappingScaledNumberFieldOptionsStep scaledNumberField()Maps the property to a scaled number field in the index with the same name as this property.- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
scaledNumberField
Maps the property to a scaled number field in the index with a custom name.- Parameters:
relativeFieldName
- The name of the index field.- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
nonStandardField
PropertyMappingFieldOptionsStep<?> nonStandardField()Maps the property to a field of non-standard type in the index with the same name as this property.This is for advanced use cases, when defining a field whose type is only supported in a specific backend.
- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
nonStandardField
Maps the property to a field of non-standard type in the index with a custom name.This is for advanced use cases, when defining a field whose type is only supported in a specific backend.
- Parameters:
relativeFieldName
- The name of the index field.- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
indexedEmbedded
PropertyMappingIndexedEmbeddedStep indexedEmbedded()Maps the property to an object field whose fields are the same as those defined in the property type, using the name of this property as the name of the object field.- Returns:
- A DSL step where the indexed-embedded mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
indexedEmbedded
Maps the property to an object field whose fields are the same as those defined in the property type, using the given custom name as the name of the object field.- Parameters:
relativeFieldName
- The name of the object field created for this indexed-embedded mapping.- Returns:
- A DSL step where the indexed-embedded mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
associationInverseSide
Assuming the property represents an association on a entity type A to entity type B, defines the inverse side of an association, i.e. the path from B to A.This is generally not needed, as inverse sides of associations should generally be inferred by the mapper. For example, Hibernate ORM defines inverse sides using
@OneToMany#mappedBy
,@OneToOne#mappedBy
, etc., and the Hibernate ORM mapper will register these inverse sides automatically.- Parameters:
inversePath
- The path representing the inverse side of the association.- Returns:
- A DSL step where the association's inverse side can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
indexingDependency
IndexingDependencyOptionsStep indexingDependency()Defines how a dependency of the indexing process to this property should affect automatic reindexing.- Returns:
- A DSL step where indexing dependency can be defined in more details, or where other elements can be mapped to the property.
-
vectorField
Maps the property to a vector field in the index with the same name as this property.- Parameters:
dimension
- The number of dimensions (array length) of vectors to be indexed.- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
vectorField
@Incubating PropertyMappingVectorFieldOptionsStep vectorField(int dimension, String relativeFieldName) Maps the property to a vector field in the index with a custom name.- Parameters:
dimension
- The number of dimensions (array length) of vectors to be indexed.relativeFieldName
- The name of the index field.- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
vectorField
Maps the property to a vector field in the index with the same name as this property.In this case the
number of dimensions
(array length) of vectors to be indexed is expected to be provided through other means, e.g. via abinder
.- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-
vectorField
Maps the property to a vector field in the index with a custom name.In this case the
number of dimensions
(array length) of vectors to be indexed is expected to be provided through other means, e.g. via abinder
.- Parameters:
relativeFieldName
- The name of the index field.- Returns:
- A DSL step where the field mapping can be defined in more details, or where other elements can be mapped to the property.
- See Also:
-