FacetRequestOptions Class
The options for facet evaluation.
- Inheritance
-
msrest.serialization.ModelFacetRequestOptions
Constructor
FacetRequestOptions(*, sort_by: str | None = None, sort_order: str | FacetSortOrder | None = 'desc', filter: str | None = None, top: int | None = None, **kwargs)
Parameters
Name | Description |
---|---|
sort_by
Required
|
The column name or query expression to sort on. Defaults to count if not present. |
sort_order
Required
|
The sorting order by the selected column (count by default). Possible values include: "asc", "desc". Default value: "desc". |
filter
Required
|
Specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual faceting. |
top
Required
|
The maximum number of facet rows that should be returned. |
Keyword-Only Parameters
Name | Description |
---|---|
sort_by
Required
|
|
sort_order
|
Default value: desc
|
filter
Required
|
|
top
Required
|
|
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python