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 ElementDescriptionALexicalAnalyzerNameto associate as the search and index analyzer for thefield.ALexicalAnalyzerNameto associate as the index analyzer for thefield.booleanIndicates if the field or method should generate as a facetablefield.booleanIndicates if the field or method should generate as a filterablefield.booleanIndicates if the field or method should generate as a hiddenfield.booleanIndicates if the field or method should generate as a keyfield.booleanIndicates if the field or method should generate as a sortablefield.booleanIndicates if whether the field will be persisted separately on disk to be returned in a search result.ALexicalAnalyzerNameto associate as the search analyzer for thefield.String[]A list ofSynonymMapnames to be associated with thefield.AVectorEncodingFormatto be associated with thefield.intThe dimensionality of the vector field.The name of the vector search profile that specifies the parameters for searching the vector field.
-
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
-
isStored
boolean isStoredIndicates if whether the field will be persisted separately on disk to be returned in a search result.- Returns:
- A flag indicating if the field or method should generate as a stored
field.
- Default:
true
-
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 analyzerNameALexicalAnalyzerNameto associate as the search and index analyzer for thefield.- Returns:
- The
LexicalAnalyzerNamethat will be associated as the search and index analyzer for thefield.
- Default:
""
-
searchAnalyzerName
String searchAnalyzerNameALexicalAnalyzerNameto associate as the search analyzer for thefield.- Returns:
- The
LexicalAnalyzerNamethat will be associated as the search analyzer for thefield.
- Default:
""
-
indexAnalyzerName
String indexAnalyzerNameALexicalAnalyzerNameto associate as the index analyzer for thefield.- Returns:
- The
LexicalAnalyzerNamethat will be associated as the index analyzer for thefield.
- Default:
""
-
synonymMapNames
String[] synonymMapNamesA list ofSynonymMapnames 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
SynonymMapnames that will be associated with thefield.
- Default:
{}
-
vectorSearchDimensions
int vectorSearchDimensionsThe dimensionality of the vector field.If the value is negative or 0, the field won't have a
SearchField.getVectorSearchDimensions()value.- Returns:
- The dimensionality of the vector
field.
- Default:
-1
-
vectorSearchProfileName
String vectorSearchProfileNameThe name of the vector search profile that specifies the parameters for searching the vector field.If the value is empty, the field won't have a
SearchField.getVectorSearchProfileName()()} value.- Returns:
- The name of the vector search profile that specifies the parameters for searching the vector
field.
- Default:
""
-
vectorEncodingFormat
String vectorEncodingFormatAVectorEncodingFormatto be associated with thefield.If the value is empty, the field won't have a
SearchField.getVectorEncodingFormat()value.- Returns:
- The
VectorEncodingFormatthat will be associated with thefield.
- Default:
""
-