Created
June 24, 2018 01:18
-
-
Save quoeamaster/3e7f825623ecbab8f518207c9756c257 to your computer and use it in GitHub Desktop.
medium queryDSL match_all sorting
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
GET books_from_amazon/_search | |
{ | |
"size": 20, | |
"query": { | |
"match_all": {} | |
}, | |
"sort": [ | |
{ | |
"name.keyword": { | |
"order": "desc" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment