Skip to content

Instantly share code, notes, and snippets.

@ivakhnov
Last active June 4, 2020 14:21
Show Gist options
  • Select an option

  • Save ivakhnov/58932cd824e39b456f689ccd6018ecac to your computer and use it in GitHub Desktop.

Select an option

Save ivakhnov/58932cd824e39b456f689ccd6018ecac to your computer and use it in GitHub Desktop.
[AuditRaw by date sorting] Get the auditRawEntry messages for a specific "targetId" sorted chronologically by Date. #sitecorecontenthub #AuditRaw #ElasticSearch
{
"query": {
"bool": {
"must": [
{
"term": {
"targetId": "123456"
}
}
],
"must_not": [],
"should": []
}
},
"from": 0,
"size": 1000,
"sort": [ {
"timeStamp": {"order" : "desc" , "unmapped_type" : "date"}
} ],
"aggs": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment