@Documented @Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) @Repeatable(value=KeywordField.List.class) public @interface KeywordField
On contrary to FullTextField
, this annotation only creates non-tokenized (single-word) text fields.
As a result:
value bridge
must be of type String
If you want to index a non-String value, use the GenericField
annotation instead.
If you want to index a String value, but want the field to be tokenized, use FullTextField
instead.
Modifier and Type | Optional Element and Description |
---|---|
ContainerValueExtractorBeanReference[] |
extractors |
String |
name |
String |
normalizer |
Projectable |
projectable |
Sortable |
sortable |
ValueBridgeBeanReference |
valueBridge |
ValueBridgeBuilderBeanReference |
valueBridgeBuilder |
public abstract String name
public abstract String normalizer
public abstract Projectable projectable
GenericField.projectable()
public abstract Sortable sortable
GenericField.sortable()
public abstract ValueBridgeBeanReference valueBridge
GenericField.valueBridge()
public abstract ValueBridgeBuilderBeanReference valueBridgeBuilder
GenericField.valueBridgeBuilder()
public abstract ContainerValueExtractorBeanReference[] extractors
GenericField.extractors()
Copyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.