Annotation Type NonStandardField
-
@Documented @Target({METHOD,FIELD}) @Retention(RUNTIME) @Repeatable(List.class) @PropertyMapping(processor=@PropertyMappingAnnotationProcessorRef(type=org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.NonStandardFieldProcessor.class,retrieval=CONSTRUCTOR)) public @interface NonStandardField
Maps a property to a non-standard field in the index.This is for advanced use cases, when defining a field whose type is only supported in a specific backend.
If you can use a standard index field type, use the
GenericField
annotation instead, or one of the specialized annotations:FullTextField
,KeywordField
, ...
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description ContainerExtraction
extraction
String
name
ValueBinderRef
valueBinder
-
-
-
Element Detail
-
name
String name
- Returns:
- The name of the index field.
- Default:
- ""
-
-
-
valueBinder
ValueBinderRef valueBinder
- Returns:
- A reference to the value binder to use for this field.
- See Also:
GenericField.valueBinder()
,ValueBinderRef
- Default:
- @org.hibernate.search.mapper.pojo.bridge.mapping.annotation.ValueBinderRef
-
-
-
extraction
ContainerExtraction extraction
- Returns:
- A definition of container extractors to be applied to the property, allowing the binding of a value bridge to container elements. By default, Hibernate Search will try to apply a set of extractors for common container types.
- See Also:
GenericField.extraction()
- Default:
- @org.hibernate.search.mapper.pojo.extractor.mapping.annotation.ContainerExtraction
-
-