Dela via


SearchField.IsSortable Property

Definition

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