@Documented @Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) @Repeatable(value=FullTextField.List.class) @PropertyMapping(processor=@PropertyMappingAnnotationProcessorRef(type=org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.FullTextFieldProcessor.class)) public @interface FullTextField
Note that this annotation only creates tokenized (multi-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 don't want the field to be analyzed, or want it to be sortable,
use the KeywordField annotation instead.
| Modifier and Type | Required Element and Description |
|---|---|
String |
analyzer |
| Modifier and Type | Optional Element and Description |
|---|---|
Aggregable |
aggregable |
ContainerExtraction |
extraction |
String |
name |
Norms |
norms |
Projectable |
projectable |
Searchable |
searchable |
String |
searchAnalyzer |
TermVector |
termVector |
ValueBinderRef |
valueBinder |
ValueBridgeRef |
valueBridge |
public abstract String analyzer
public abstract String name
public abstract String searchAnalyzer
analyzer(),
to use for query parameters at search time.
If not defined, the same analyzer() will be used.
As above, see the documentation of your backend to know how to define analyzers.
public abstract TermVector termVector
TermVectorpublic abstract Projectable projectable
GenericField.projectable(),
Projectablepublic abstract Searchable searchable
GenericField.sortable(),
Searchablepublic abstract Aggregable aggregable
GenericField.aggregable(),
Aggregablepublic 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-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.