Last active
June 4, 2020 14:21
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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