Megosztás a következőn keresztül:


SimpleFieldAttribute.IsSortable Property

Definition

Gets or sets a value indicating whether to enable the field can be referenced in $orderby expressions. The default is false.

public bool IsSortable { get; set; }
member this.IsSortable : bool with get, set
Public Property IsSortable As Boolean

Property Value

Remarks

By default Azure Cognitive Search sorts results by score, but in many experiences users may want to sort by fields in the documents.

Applies to