@Documented @Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) @Repeatable(value=GenericField.List.class) public @interface GenericField
Note that this annotation, being generic, does not offer configuration options
that are specific to only some types of fields.
Use more specific annotations if you want that kind of configuration.
For example, to define a tokenized (multi-word) text field, use FullTextField
.
To define a non-tokenized (single-word) text field, use KeywordField
.
Modifier and Type | Optional Element and Description |
---|---|
ContainerValueExtractorBeanReference[] |
extractors |
String |
name |
Projectable |
projectable |
Sortable |
sortable |
ValueBridgeBeanReference |
valueBridge |
ValueBridgeBuilderBeanReference |
valueBridgeBuilder |
public abstract String name
public abstract Projectable projectable
public abstract Sortable sortable
public abstract ValueBridgeBeanReference valueBridge
@GenericField
annotation as valueBridgeBuilder()
:
either a bridge or a bridge builder can be provided, but never both.public abstract ValueBridgeBuilderBeanReference valueBridgeBuilder
@GenericField
annotation as valueBridge()
:
either a bridge or a bridge builder can be provided, but never both.public abstract ContainerValueExtractorBeanReference[] extractors
Iterable
, Collection
, Optional
, ...).
To prevent Hibernate Search from applying any extractor, set this attribute to an empty array ({}
).Copyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.