I was going through Elastic Search query-string-syntax .
How can I do pagination using these syntax. Like 10 record per page.
Use like this
curl -XPOST "http://HOSTNAME:9200/Index/Type/_search?q=title:(quick brown)&size=10&from=0"
curl -XPOST "http://HOSTNAME:9200/Index/Type/_search?q=title:(quick brown)&size=1&from=20"
curl -XPOST "http://HOSTNAME:9200/Index/Type/_search?q=title:(quick brown)&size=10&from=30"
Increase from value to get next 10 documents..
HOpe it helps..!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.