search_list {civis} | R Documentation |
Perform a search
Description
Perform a search
Usage
search_list(
query = NULL,
type = NULL,
offset = NULL,
order = NULL,
owner = NULL,
limit = NULL,
archived = NULL,
last_run_state = NULL
)
Arguments
query |
string optional. The search query. |
type |
string optional. The type for the search. It accepts a comma-separated list. Valid arguments are listed on the "GET /search/types" endpoint. |
offset |
integer optional. The offset for the search results. |
order |
string optional. The field on which to order the result set. |
owner |
string optional. The owner for the search. |
limit |
integer optional. Defaults to 10. Maximum allowed is 1000. |
archived |
string optional. If specified, return only results with the chosen archived status; either 'true', 'false', or 'all'. Defaults to 'false'. |
last_run_state |
string optional. The last run state of the job being searched for; either: 'queued', 'running', 'succeeded', 'failed', or 'cancelled'. |
Value
An array containing the following fields:
totalResults |
integer, The number of items matching the search query. |
aggregations |
list, Aggregations by owner and type for the search results. |
results |
array, An array containing the following fields:
|