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
, ...
-
Nested Class Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescription
-
Element Details
-
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:
- 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:
- Default:
- @org.hibernate.search.mapper.pojo.extractor.mapping.annotation.ContainerExtraction
-