Annotation Type SearchableField
An annotation that directs
SearchIndexAsyncClient.buildSearchFields(Class, FieldBuilderOptions)
to turn the
field or method into a searchable field
.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionALexicalAnalyzerName
to associate as the search and index analyzer for thefield
.ALexicalAnalyzerName
to associate as the index analyzer for thefield
.boolean
Indicates if the field or method should generate as a facetablefield
.boolean
Indicates if the field or method should generate as a filterablefield
.boolean
Indicates if the field or method should generate as a hiddenfield
.boolean
Indicates if the field or method should generate as a keyfield
.boolean
Indicates if the field or method should generate as a sortablefield
.ALexicalNormalizerName
to associate as the normalizer for thefield
.ALexicalAnalyzerName
to associate as the search analyzer for thefield
.String[]
A list ofSynonymMap
names to be associated with thefield
.
-
Element Details
-
isKey
boolean isKeyIndicates if the field or method should generate as a keyfield
.- Returns:
- A flag indicating if the field or method should generate as a key
field
.
- Default:
- false
-
isHidden
boolean isHiddenIndicates if the field or method should generate as a hiddenfield
.- Returns:
- A flag indicating if the field or method should generate as a hidden
field
.
- Default:
- false
-
isFacetable
boolean isFacetableIndicates if the field or method should generate as a facetablefield
.- Returns:
- A flag indicating if the field or method should generate as a facetable
field
.
- Default:
- false
-
isSortable
boolean isSortableIndicates if the field or method should generate as a sortablefield
.- Returns:
- A flag indicating if the field or method should generate as a sortable
field
.
- Default:
- false
-
isFilterable
boolean isFilterableIndicates if the field or method should generate as a filterablefield
.- Returns:
- A flag indicating if the field or method should generate as a filterable
field
.
- Default:
- false
-
analyzerName
String analyzerNameALexicalAnalyzerName
to associate as the search and index analyzer for thefield
.- Returns:
- The
LexicalAnalyzerName
that will be associated as the search and index analyzer for thefield
.
- Default:
- ""
-
searchAnalyzerName
String searchAnalyzerNameALexicalAnalyzerName
to associate as the search analyzer for thefield
.- Returns:
- The
LexicalAnalyzerName
that will be associated as the search analyzer for thefield
.
- Default:
- ""
-
indexAnalyzerName
String indexAnalyzerNameALexicalAnalyzerName
to associate as the index analyzer for thefield
.- Returns:
- The
LexicalAnalyzerName
that will be associated as the index analyzer for thefield
.
- Default:
- ""
-
normalizerName
String normalizerNameALexicalNormalizerName
to associate as the normalizer for thefield
.- Returns:
- The
LexicalNormalizerName
that will be associated as the normalizer for thefield
.
- Default:
- ""
-
synonymMapNames
String[] synonymMapNamesA list ofSynonymMap
names to be associated with thefield
.Assigning a synonym map to a field ensures that query terms targeting that field are expanded at query-time using the rules in the synonym map. The synonym map attribute may be changed on existing fields.
Currently, only one synonym map per field is supported.
- Returns:
- The
SynonymMap
names that will be associated with thefield
.
- Default:
- {}
-