Last active
January 1, 2018 01:18
-
-
Save kanapuli/151efab863fe2455c28de702f9d286ce to your computer and use it in GitHub Desktop.
This file contains 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
//sort query sorts the document based on the field specified | |
{ | |
"query": { | |
"match_all": {}, | |
"sort": [ | |
{ | |
"id": { | |
"order": "desc" | |
} | |
}, | |
"_score" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment