 | SearchOptionsSort Method (String) |
Configures the list of fields which are used for sorting the search result. Fields with a prefix of "-" indicate a descending nature.
If no sort is provided, it is equal to sort("-_score"), since the server will sort it by score in descending order by default.
Namespace:
Couchbase.Search
Assembly:
Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 3.0.0-local-202004010202+047adc0837bfc29c0b8cce4322194a09afd8ea18
Syntaxpublic SearchOptions Sort(
params string[] sort
)
Parameters
- sort
- Type: SystemString
The field names to sort by.
Return Value
Type:
SearchOptions[Missing <returns> documentation for "M:Couchbase.Search.SearchOptions.Sort(System.String[])"]
See Also