SearchField.IsKey Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets whether the field is the key field. The default is null. A SearchIndex must have exactly one key field of type String.
public bool? IsKey { get; set; }
member this.IsKey : Nullable<bool> with get, set
Public Property IsKey As Nullable(Of Boolean)
Property Value
Remarks
This field must be set according to constraints described in the summary, or the server may respond with an error. Instead, consider using the SimpleField, SearchableField, VectorSearchField and ComplexField classes to help you more easily create a SearchIndex.
Applies to
Azure SDK for .NET