Created
June 16, 2011 07:30
-
-
Save clintongormley/1028836 to your computer and use it in GitHub Desktop.
Scrolled search
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
| # [Thu Jun 16 09:28:10 2011] Protocol: http, Server: 192.168.5.103:9200 | |
| curl -XPUT 'http://127.0.0.1:9200/test/?pretty=1' | |
| # [Thu Jun 16 09:28:11 2011] Response: | |
| # { | |
| # "ok" : true, | |
| # "acknowledged" : true | |
| # } | |
| # [Thu Jun 16 09:29:10 2011] Protocol: http, Server: 192.168.5.103:9200 | |
| curl -XPOST 'http://127.0.0.1:9200/_bulk?pretty=1' -d ' | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| {"index" : {"_index" : "test", "_type" : "tweet"}} | |
| {"content" : "foo", "user" : "kimchy"} | |
| ' | |
| # [Thu Jun 16 09:29:10 2011] Response: | |
| # { | |
| # "items" : [ | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "Lusf27dxSxOQ9ET1zOaInw", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "I4zCxpOjRn2p7COsDJG7Dw", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "oBVwfx9YRYGgdyNN1DwkVg", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "nHCSlA6uSvCbkS3tgJwYMg", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "QVL4A7viQN6svNWBYU3BqQ", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "aj0-tGVgT52KBK159Pyh3w", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "8sR50tTXSFi91MgEX1jv7g", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "s1DUVnpWRpOXgXIltdSv1A", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "057IUOryS0a9JfP-vdNnaQ", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "1T4fg-tERcKaecxnWYAncw", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "O9T0Y-P-S1qAAsO2q-COlA", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "necT8OXkTSSHGB1Nl0zFkQ", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "FseJZgBnShi_PHffvGEI_g", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "X21uMl3JT46jC2I2rwRSgA", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "NIR9c5tZQPOfkXLrQgwrnw", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "c1GDZJZzQg6WGEli4njL3Q", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "mPq-i3OTQ16Hi15qFdY-Rw", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "Nk4aR3SyT1i27cdAKjinNQ", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "kA1R8RE_Rjm2diKFBtX3uQ", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # }, | |
| # { | |
| # "create" : { | |
| # "ok" : true, | |
| # "_index" : "test", | |
| # "_id" : "WKzoOISJSw2-jb_wg1S82Q", | |
| # "_type" : "tweet", | |
| # "_version" : 1 | |
| # } | |
| # } | |
| # ], | |
| # "took" : 24 | |
| # } | |
| # [Thu Jun 16 09:29:18 2011] Protocol: http, Server: 192.168.5.103:9200 | |
| curl -XGET 'http://127.0.0.1:9200/test/_search?scroll=5m&pretty=1&fields=&size=2&search_type=scan' | |
| # [Thu Jun 16 09:29:18 2011] Response: | |
| # { | |
| # "hits" : { | |
| # "hits" : [], | |
| # "max_score" : 0, | |
| # "total" : 20 | |
| # }, | |
| # "timed_out" : false, | |
| # "_shards" : { | |
| # "failed" : 0, | |
| # "successful" : 5, | |
| # "total" : 5 | |
| # }, | |
| # "_scroll_id" : "c2Nhbjs1OzMzODpQbXB1a2hFUVNycW9EcllDalkwX1hBOz | |
| # > MzNjpQbXB1a2hFUVNycW9EcllDalkwX1hBOzMzOTpQbXB1a2hFUVNycW9Ecl | |
| # > lDalkwX1hBOzM0MDpQbXB1a2hFUVNycW9EcllDalkwX1hBOzMzNzpQbXB1a2 | |
| # > hFUVNycW9EcllDalkwX1hBOzE7dG90YWxfaGl0czoyMDs=", | |
| # "took" : 0 | |
| # } | |
| # [Thu Jun 16 09:29:19 2011] Protocol: http, Server: 192.168.5.103:9200 | |
| curl -XGET 'http://127.0.0.1:9200/_search/scroll?scroll=5m&pretty=1&scroll_id=c2Nhbjs1OzMzODpQbXB1a2hFUVNycW9EcllDalkwX1hBOzMzNjpQbXB1a2hFUVNycW9EcllDalkwX1hBOzMzOTpQbXB1a2hFUVNycW9EcllDalkwX1hBOzM0MDpQbXB1a2hFUVNycW9EcllDalkwX1hBOzMzNzpQbXB1a2hFUVNycW9EcllDalkwX1hBOzE7dG90YWxfaGl0czoyMDs%3D' | |
| # [Thu Jun 16 09:29:19 2011] Response: | |
| # { | |
| # "hits" : { | |
| # "hits" : [ | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "057IUOryS0a9JfP-vdNnaQ", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "X21uMl3JT46jC2I2rwRSgA", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "Lusf27dxSxOQ9ET1zOaInw", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "8sR50tTXSFi91MgEX1jv7g", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "I4zCxpOjRn2p7COsDJG7Dw", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "1T4fg-tERcKaecxnWYAncw", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "nHCSlA6uSvCbkS3tgJwYMg", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "QVL4A7viQN6svNWBYU3BqQ", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "oBVwfx9YRYGgdyNN1DwkVg", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "aj0-tGVgT52KBK159Pyh3w", | |
| # "_type" : "tweet" | |
| # } | |
| # ], | |
| # "max_score" : 0, | |
| # "total" : 20 | |
| # }, | |
| # "timed_out" : false, | |
| # "_shards" : { | |
| # "failed" : 0, | |
| # "successful" : 5, | |
| # "total" : 5 | |
| # }, | |
| # "_scroll_id" : "c2Nhbjs1OzMzNjpQbXB1a2hFUVNycW9EcllDalkwX1hBOz | |
| # > MzODpQbXB1a2hFUVNycW9EcllDalkwX1hBOzMzOTpQbXB1a2hFUVNycW9Ecl | |
| # > lDalkwX1hBOzM0MDpQbXB1a2hFUVNycW9EcllDalkwX1hBOzMzNzpQbXB1a2 | |
| # > hFUVNycW9EcllDalkwX1hBOzE7dG90YWxfaGl0czoyMDs=", | |
| # "took" : 0 | |
| # } | |
| # [Thu Jun 16 09:29:19 2011] Protocol: http, Server: 192.168.5.103:9200 | |
| curl -XGET 'http://127.0.0.1:9200/_search/scroll?scroll=5m&pretty=1&scroll_id=c2Nhbjs1OzMzNjpQbXB1a2hFUVNycW9EcllDalkwX1hBOzMzODpQbXB1a2hFUVNycW9EcllDalkwX1hBOzMzOTpQbXB1a2hFUVNycW9EcllDalkwX1hBOzM0MDpQbXB1a2hFUVNycW9EcllDalkwX1hBOzMzNzpQbXB1a2hFUVNycW9EcllDalkwX1hBOzE7dG90YWxfaGl0czoyMDs%3D' | |
| # [Thu Jun 16 09:29:19 2011] Response: | |
| # { | |
| # "hits" : { | |
| # "hits" : [ | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "FseJZgBnShi_PHffvGEI_g", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "NIR9c5tZQPOfkXLrQgwrnw", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "s1DUVnpWRpOXgXIltdSv1A", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "necT8OXkTSSHGB1Nl0zFkQ", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "O9T0Y-P-S1qAAsO2q-COlA", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "mPq-i3OTQ16Hi15qFdY-Rw", | |
| # "_type" : "tweet" | |
| # } | |
| # ], | |
| # "max_score" : 0, | |
| # "total" : 20 | |
| # }, | |
| # "timed_out" : false, | |
| # "_shards" : { | |
| # "failed" : 0, | |
| # "successful" : 5, | |
| # "total" : 5 | |
| # }, | |
| # "_scroll_id" : "c2NhbjszOzMzOTpQbXB1a2hFUVNycW9EcllDalkwX1hBOz | |
| # > M0MDpQbXB1a2hFUVNycW9EcllDalkwX1hBOzMzNzpQbXB1a2hFUVNycW9Ecl | |
| # > lDalkwX1hBOzE7dG90YWxfaGl0czoyMDs=", | |
| # "took" : 0 | |
| # } | |
| # [Thu Jun 16 09:29:19 2011] Protocol: http, Server: 192.168.5.103:9200 | |
| curl -XGET 'http://127.0.0.1:9200/_search/scroll?scroll=5m&pretty=1&scroll_id=c2NhbjszOzMzOTpQbXB1a2hFUVNycW9EcllDalkwX1hBOzM0MDpQbXB1a2hFUVNycW9EcllDalkwX1hBOzMzNzpQbXB1a2hFUVNycW9EcllDalkwX1hBOzE7dG90YWxfaGl0czoyMDs%3D' | |
| # [Thu Jun 16 09:29:19 2011] Response: | |
| # { | |
| # "hits" : { | |
| # "hits" : [ | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "c1GDZJZzQg6WGEli4njL3Q", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "Nk4aR3SyT1i27cdAKjinNQ", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "kA1R8RE_Rjm2diKFBtX3uQ", | |
| # "_type" : "tweet" | |
| # }, | |
| # { | |
| # "_score" : 0, | |
| # "_index" : "test", | |
| # "_id" : "WKzoOISJSw2-jb_wg1S82Q", | |
| # "_type" : "tweet" | |
| # } | |
| # ], | |
| # "max_score" : 0, | |
| # "total" : 20 | |
| # }, | |
| # "timed_out" : false, | |
| # "_shards" : { | |
| # "failed" : 0, | |
| # "successful" : 3, | |
| # "total" : 3 | |
| # }, | |
| # "_scroll_id" : "c2NhbjsxOzM0MDpQbXB1a2hFUVNycW9EcllDalkwX1hBOz | |
| # > E7dG90YWxfaGl0czoyMDs=", | |
| # "took" : 0 | |
| # } | |
| # [Thu Jun 16 09:29:19 2011] Protocol: http, Server: 192.168.5.103:9200 | |
| curl -XGET 'http://127.0.0.1:9200/_search/scroll?scroll=5m&pretty=1&scroll_id=c2NhbjsxOzM0MDpQbXB1a2hFUVNycW9EcllDalkwX1hBOzE7dG90YWxfaGl0czoyMDs%3D' | |
| # [Thu Jun 16 09:29:19 2011] Response: | |
| # { | |
| # "hits" : { | |
| # "hits" : [], | |
| # "max_score" : 0, | |
| # "total" : 20 | |
| # }, | |
| # "timed_out" : false, | |
| # "_shards" : { | |
| # "failed" : 0, | |
| # "successful" : 1, | |
| # "total" : 1 | |
| # }, | |
| # "_scroll_id" : "c2NhbjswOzE7dG90YWxfaGl0czoyMDs=", | |
| # "took" : 1 | |
| # } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment