Search events

Search events searches for matched events. Search logic is as for search documents.

{
"filters": [
{
"dimension_reference": "textRef",
"dimension_type": "text",
"value": "value"
},
{
"dimension_reference": "dateRef",
"dimension_type": "text",
"from": "yyyy-mm-dd",
"to": "yyyy-mm-dd"
}, ...
]
}

The properties of the filters depend on the type of the dimension. For text dimensions, a value match is used. For date dimensions, a from and to date are used. to is inclusive (i.e. the last date), and from and to are both optional.

The response from the search is an object with an events array. Each event also contains a worker reference to the worker that created it.

{
"results": [
{
"score": score,
"event_timestamp": "timestamp",
...
"worker": {
"worker_uuid": "uuid",
...
}
}, ... more events ...
]
}

The event object may have a score which indicates the strength of match, higher scores are stronger.