Created
January 18, 2017 13:29
-
-
Save spinscale/631a0e262149eb1d9727973d616d35ae to your computer and use it in GitHub Desktop.
Search after Beispiel
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
DELETE foo | |
PUT /foo/bar/_bulk | |
{ "index" : { "_id" : "alex" } } | |
{ "name" : "Alex" } | |
{ "index" : { "_id" : "bert" } } | |
{ "name" : "Bert" } | |
{ "index" : {"_id" : "caesar" } } | |
{ "name" : "Caesar" } | |
{ "index" : {"_id" : "dagobert" } } | |
{ "name" : "Dagobert" } | |
GET foo/_search | |
{ | |
"size": 1, | |
"sort": [ | |
{"name.keyword": "asc"}, | |
{"_uid": "desc"} | |
] | |
} | |
GET foo/_search | |
{ | |
"size": 1, | |
"search_after" : [ "Alex", "bar#1" ], | |
"sort": [ | |
{"name.keyword": "asc"}, | |
{"_uid": "desc"} | |
] | |
} | |
GET foo/_search | |
{ | |
"size": 1, | |
"search_after" : [ "Bert", "bar#2" ], | |
"sort": [ | |
{"name.keyword": "asc"}, | |
{"_uid": "desc"} | |
] | |
} | |
DELETE foo/bar/bert | |
GET foo/_search | |
{ | |
"size": 1, | |
"search_after" : [ "Bert", "bar#2" ], | |
"sort": [ | |
{"name.keyword": "asc"}, | |
{"_uid": "desc"} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment