BasicField Interface
Implements
public interface BasicField
implements Annotation
Annotation used to create SearchField using buildSearchFields(Class<?> model) or buildSearchFields(Class<?> model).
Only fields or methods annotated with this annotation or ComplexField will be used to create SearchField.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract String |
analyzerName()
A LexicalAnalyzerName to associate as the search and index analyzer for the SearchField. |
| abstract String |
indexAnalyzerName()
A LexicalAnalyzerName to associate as the index analyzer for the SearchField. |
|
abstract
Boolean |
isFacetable()
Indicates if the field or method should generate as a facetable SearchField. |
|
abstract
Boolean |
isFilterable()
Indicates if the field or method should generate as a filterable SearchField. |
|
abstract
Boolean |
isHidden()
Deprecated
Use isRetrievable() instead and flip the boolean value.
Indicates if the field or method should generate as a hidden SearchField. |
|
abstract
Boolean |
isKey()
Indicates if the field or method should generate as a key SearchField. |
|
abstract
Boolean |
isRetrievable()
Indicates if the field or method should generate as a retrievable SearchField. |
|
abstract
Boolean |
isSearchable()
Indicates whether the field can be searched against. |
|
abstract
Boolean |
isSensitivityLabel()
Indicates if the field or method should be used for sensitivity label filtering. |
|
abstract
Boolean |
isSortable()
Indicates if the field or method should generate as a sortable SearchField. |
|
abstract
Boolean |
isStored()
Indicates if whether the field will be persisted separately on disk to be returned in a search result. |
| abstract String |
name()
The getName() used in the SearchIndex. |
| abstract String |
normalizerName()
A LexicalNormalizerName to associate as the normalizer for the SearchField. |
| abstract String |
permissionFilter()
Indicates if the field or method should be used as a permission filter SearchField. |
| abstract String |
searchAnalyzerName()
A LexicalAnalyzerName to associate as the search analyzer for the SearchField. |
| abstract String[] |
synonymMapNames()
A list of SynonymMap names to be associated with the SearchField. |
| abstract String |
vectorEncodingFormat()
A VectorEncodingFormat to be associated with the SearchField. |
| abstract int |
vectorSearchDimensions()
The dimensionality of the vector field. |
| abstract String |
vectorSearchProfileName()
The name of the vector search profile that specifies the parameters for searching the vector field. |
Method Details
analyzerName
public abstract String analyzerName()
A LexicalAnalyzerName to associate as the search and index analyzer for the SearchField.
Returns:
indexAnalyzerName
public abstract String indexAnalyzerName()
A LexicalAnalyzerName to associate as the index analyzer for the SearchField.
Returns:
isFacetable
public abstract BasicField.BooleanHelper isFacetable()
Indicates if the field or method should generate as a facetable SearchField.
Returns:
isFilterable
public abstract BasicField.BooleanHelper isFilterable()
Indicates if the field or method should generate as a filterable SearchField.
Returns:
isHidden
@Deprecated
public abstract BasicField.BooleanHelper isHidden()
Deprecated
Indicates if the field or method should generate as a hidden SearchField.
When building fields, unless BooleanHelper#NULL is set, this must have the opposite value of isRetrievable().
Returns:
isKey
public abstract BasicField.BooleanHelper isKey()
Indicates if the field or method should generate as a key SearchField.
Returns:
isRetrievable
public abstract BasicField.BooleanHelper isRetrievable()
Indicates if the field or method should generate as a retrievable SearchField.
When building fields, unless BooleanHelper#NULL is set, this must have the opposite value of isHidden().
Returns:
isSearchable
public abstract BasicField.BooleanHelper isSearchable()
Indicates whether the field can be searched against.
Returns:
isSensitivityLabel
public abstract BasicField.BooleanHelper isSensitivityLabel()
Indicates if the field or method should be used for sensitivity label filtering. This enables document-level filtering based on Microsoft Purview sensitivity labels.
Returns:
isSortable
public abstract BasicField.BooleanHelper isSortable()
Indicates if the field or method should generate as a sortable SearchField.
Returns:
isStored
public abstract BasicField.BooleanHelper isStored()
Indicates if whether the field will be persisted separately on disk to be returned in a search result.
Returns:
name
public abstract String name()
The getName() used in the SearchIndex.
Returns:
normalizerName
public abstract String normalizerName()
A LexicalNormalizerName to associate as the normalizer for the SearchField.
Returns:
permissionFilter
public abstract String permissionFilter()
Indicates if the field or method should be used as a permission filter SearchField.
Returns:
searchAnalyzerName
public abstract String searchAnalyzerName()
A LexicalAnalyzerName to associate as the search analyzer for the SearchField.
Returns:
synonymMapNames
public abstract String[] synonymMapNames()
A list of SynonymMap names to be associated with the SearchField.
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:
vectorEncodingFormat
public abstract String vectorEncodingFormat()
A VectorEncodingFormat to be associated with the SearchField.
If the value is empty, the field won't have a getVectorEncodingFormat() value.
Returns:
vectorSearchDimensions
public abstract int vectorSearchDimensions()
The dimensionality of the vector field.
If the value is negative or 0, the field won't have a getVectorSearchDimensions() value.
Returns:
vectorSearchProfileName
public abstract String vectorSearchProfileName()
The 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 getVectorSearchProfileName() ()} value.
Returns: