Annotation Type SearchableField
-
@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface SearchableField
An annotation that directsSearchIndexAsyncClient.buildSearchFields(Class, FieldBuilderOptions)
to turn the field or method into a searchablefield
.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
analyzerName
ALexicalAnalyzerName
to associate as the search and index analyzer for thefield
.String
indexAnalyzerName
ALexicalAnalyzerName
to associate as the index analyzer for thefield
.boolean
isFacetable
Indicates if the field or method should generate as a facetablefield
.boolean
isFilterable
Indicates if the field or method should generate as a filterablefield
.boolean
isHidden
Indicates if the field or method should generate as a hiddenfield
.boolean
isKey
Indicates if the field or method should generate as a keyfield
.boolean
isSortable
Indicates if the field or method should generate as a sortablefield
.String
searchAnalyzerName
ALexicalAnalyzerName
to associate as the search analyzer for thefield
.String[]
synonymMapNames
A list ofSynonymMap
names to be associated with thefield
.
-
-
-
-
analyzerName
String analyzerName
ALexicalAnalyzerName
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 searchAnalyzerName
ALexicalAnalyzerName
to associate as the search analyzer for thefield
.- Returns:
- The
LexicalAnalyzerName
that will be associated as the search analyzer for thefield
.
- Default:
- ""
-
-
-
indexAnalyzerName
String indexAnalyzerName
ALexicalAnalyzerName
to associate as the index analyzer for thefield
.- Returns:
- The
LexicalAnalyzerName
that will be associated as the index analyzer for thefield
.
- Default:
- ""
-
-
-
synonymMapNames
String[] synonymMapNames
A 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:
- {}
-
-