Created
August 17, 2017 06:18
-
-
Save sajidzaman/2526311ade3438a07454df8c78d6a4e7 to your computer and use it in GitHub Desktop.
Pagination and sorting in elastic search
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 /vehicles/cars/_search | |
{ | |
"from": 0, | |
"size" : 5, | |
"query": { | |
"match_all": {} | |
}, | |
"sort": [ | |
{ "price": { "order": "desc"} } | |
] | |
} | |
Pagination | |
Sorting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment