Annotation Type Text
-
@Documented @Target({METHOD,FIELD}) @Retention(RUNTIME) @Repeatable(List.class) @PropertyMapping(processor=@PropertyMappingAnnotationProcessorRef(type=TextProcessor.class,retrieval=CONSTRUCTOR)) public @interface Text
Maps a property to a full-text field in the index, potentially holding multiple tokens (words) of text.Note that this annotation only creates tokenized (multi-word) text fields. As a result:
- The field value must be of type String
- You must assign an analyzer when using this annotation
- This annotation does not allow making the field sortable (analyzed fields cannot be sorted on)
- This annotation does not allow making the field aggregable (analyzed fields cannot be aggregated on)
If you want to index a non-String value, use the
Basic
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 theKeyword
annotation instead.Simplified version for Infinispan of
FullTextField
- Since:
- 14.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
analyzer
String
name
boolean
norms
Whether index-time scoring information for the field should be stored or not.boolean
projectable
boolean
searchable
String
searchAnalyzer
TermVector
termVector
-
-
-
Element Detail
-
name
String name
- Returns:
- The name of the index field.
- Default:
- ""
-
-
-
analyzer
String analyzer
- Returns:
- A reference to the analyzer to use for this field. By default, the Lucene standard analyzer will be applied.
- Default:
- "standard"
-
-
-
searchAnalyzer
String searchAnalyzer
- Returns:
- A reference to a different analyzer, overriding the
analyzer()
, to use for query parameters at search time. If not defined, the sameanalyzer()
will be used.
- Default:
- ""
-
-
-
termVector
TermVector termVector
- Returns:
- The term vector storing strategy.
- See Also:
TermVector
- Default:
- org.infinispan.api.annotations.indexing.option.TermVector.NO
-
-
-
projectable
boolean projectable
- Returns:
- Whether projections are enabled for this field.
- See Also:
Basic.projectable()
- Default:
- false
-
-
-
searchable
boolean searchable
- Returns:
- Whether this field should be searchable.
- See Also:
Basic.searchable()
- Default:
- true
-
-