@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 |
---|---|
ContainerExtractorRef[] |
extractors |
String |
name |
String |
normalizer |
Projectable |
projectable |
Sortable |
sortable |
ValueBridgeRef |
valueBridge |
public abstract String name
public abstract String normalizer
public abstract Projectable projectable
GenericField.projectable()
public abstract Sortable sortable
GenericField.sortable()
public abstract ValueBridgeRef valueBridge
ValueBridgeRef
public abstract ContainerExtractorRef[] extractors
GenericField.extractors()
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.