@Documented @Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) @Repeatable(value=KeywordField.List.class) @PropertyMapping(processor=@PropertyMappingAnnotationProcessorRef(type=org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.KeywordFieldProcessor.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 |
|---|---|
Aggregable |
aggregable |
ContainerExtraction |
extraction |
String |
indexNullAs |
String |
name |
String |
normalizer |
Norms |
norms |
Projectable |
projectable |
Searchable |
searchable |
Sortable |
sortable |
ValueBinderRef |
valueBinder |
ValueBridgeRef |
valueBridge |
public abstract String name
public abstract String normalizer
public abstract Projectable projectable
GenericField.projectable(),
Projectablepublic abstract Sortable sortable
GenericField.sortable(),
Sortablepublic abstract Searchable searchable
GenericField.searchable(),
Searchablepublic abstract Aggregable aggregable
GenericField.aggregable(),
Aggregablepublic abstract String indexNullAs
GenericField.indexNullAs()public abstract ValueBridgeRef valueBridge
valueBinder() is set.GenericField.valueBridge(),
ValueBridgeRefpublic abstract ValueBinderRef valueBinder
valueBridge() is set.GenericField.valueBinder(),
ValueBinderRefpublic abstract ContainerExtraction extraction
GenericField.extraction()Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.