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 be used for sensitivity label filtering.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.ALexicalNormalizerNameto associate as the normalizer for thefield.Indicates if the field or method should be used as a permission filterfield.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
-
isHidden
-
isFacetable
-
permissionFilter
-
isSensitivityLabel
boolean isSensitivityLabelIndicates if the field or method should be used for sensitivity label filtering. This enables document-level filtering based on Microsoft Purview sensitivity labels.- Returns:
- A flag indicating if the field or method should generate as a sensitivity label
field.
- Default:
false
-
isSortable
-
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
-
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:
""
-
normalizerName
String normalizerNameALexicalNormalizerNameto associate as the normalizer for thefield.- Returns:
- The
LexicalNormalizerNamethat will be associated as the normalizer 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:
""
-