generic class to represent a JSON request structure for searching entities with filters, sorting and pagination.
Attributes
| Name | Type | Description |
|---|---|---|
| filters | dict | dictionary of filter criteria where keys are field names and values are FilterOperator expressions. |
| sort | list | list of SortOption defining sorting rules. |
| page | int | page number for pagination. |
| size | int | number of results per page. |
| limit | int | maximum number of results to return. |
| service_name | str | name of the service to query. |
| groups | list | list of group options for aggregation. |
| group_summaries | list | list of group summaries for aggregation statistics. |
Methods
from_dict()
create a SearchQuery from a dictionary.
| Name | Type | Default | Description |
|---|---|---|---|
| data | dict | dictionary representation of the search query. |
to_dict()
convert SearchQuery to a dictionary.
return: dictionary representation.