POST /dynamic_search/searches

Posts a search to be performed by the service.

Posts a search to be performed by the service.

Table 1. POST /dynamic_search/searches resource details
MIME Type

application/json

Table 2. POST /dynamic_search/searches request body details
Parameter Data Type MIME Type Description Sample

search

Object

application/json

null

{ "query":"Coming soon!" }

Table 3. POST /dynamic_search/searches response codes
HTTP Response Code Unique Code Description

201

A list of searches that the user has made.

422

1001

Error processing a supplied Field object (or one of its sub-objects).

422

1002

Error processing a supplied Filter object (or one of its sub-objects)

422

1003

Error processing a supplied Function object (or one of its sub-objects).

422

1004

Error processing a supplied Operator object (or one of its sub-objects).

422

1005

Error processing a supplied Range object (or one of its sub-objects).

422

1006

Error processing a supplied Sort object (or one of its sub-objects).

422

1007

Error combining elements of the Query object.

422

1011

No Schema was found that match the posted Query.

422

1012

A range was specified, but no sort provided

422

1013

Don't specify a retain_duration and an expires_at time. Provide one, and the other will be automatically computed.

422

1014

Retention must be positive or Expiration time must be in the future

500

1010

null

500

1020

null

Response Description

An handle for the newly posted search.
  • handle - String - The unique, server-generated UUID that represents this search.
  • status - String - The current status of this search, one of (QUEUED, DONE, or ERROR)
  • search_type - String - The type of this search, one of (SYNCH or ASYNCH). Defaults to SYNCH.
  • retention - The date/time info related to this search.
    • creation_date - Long - The date and time that this search was posted, in milliseconds since the epoch.
    • last_accessed_date - Long - The date and time that the results for this search were last accessed, in milliseconds since the epoch.
    • expires_at - Long - The date and time until which that this search will be kept, in milliseconds since the epoch.
    • retain_duration - Long - The number of milliseconds (counting from creation_date) to keep this search and the associated results.
  • description - String - A user-supplied freeform string used to store identifying or descriptive information. It has no effect on search execution.
  • header - An explanation of the structure of the results below.
  • columns - A description of the returned columns
    • field - One of the fields requested in this search.
    • column_name - String - The name of the column variable that contains that field. Always of the form "columnN".
  • query - The query that created this search.
  • fields - A list of the fields which specifies the columns returned by this search.
  • filters - A list of the conditions that will filter the row returned by this search
    • argument - The argument field for this filter.
    • parameters - A list of string parameters for this filter.
    • operator - The operator for this filter. Must be a value returned from the Operators endpoint or a valid logical operator (AND, OR, NOT).
    • left_filter - The left child of the complex filter case. Must be not-null if operator is (AND or OR) and null otherwise.
    • right_filter - The right child of the complex filter case. Must be not-null if operator is (AND, OR or NOT) and null otherwise.
  • sorts - An ordered list of the Sorts (each a Field plus a direction (ASC/DESC)) that should be applied to the results of this search
    • field - The field on which to apply sorting.
    • direction - String - The direction of the sort (must be one of ASC/DESC).
  • range - A specification of the limit and offset that should be applied to the results returned by this search. If a range is specified, at least one sort must also be specified.
    • limit - Integer - The non-negative number of results to return.
    • offset - Integer - The non-negative position at which to begin returning results.
  • results - The list of results returned by this search.
  • columns -Contains a map of columns and their values, both as strings.

Response Sample


{
	"query":"Coming soon!"
}