Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SearchField.IsSortable Property

Definition

Namespace:
Azure.Search.Documents.Indexes.Models
Assembly:
Azure.Search.Documents.dll
Package:
Azure.Search.Documents v12.0.0
Package:
Azure.Search.Documents v12.1.0-beta.1
Source:
SearchField.cs
Source:
SearchField.cs

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 a value indicating whether the field can be referenced in a $orderby expression. The default is null. A simple field can be sortable only if it is a single-valued type such as String or Int32.

public bool? IsSortable { get; set; }
member this.IsSortable : Nullable<bool> with get, set
Public Property IsSortable 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


Feedback

Was this page helpful?