Skip to content

Instantly share code, notes, and snippets.

@matthuhiggins
Created June 11, 2013 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthuhiggins/5759801 to your computer and use it in GitHub Desktop.
Save matthuhiggins/5759801 to your computer and use it in GitHub Desktop.
ElasticSearch scroll responses
{
"_scroll_id"=>"c2NhbjsxOzc4NjprWFFSS01qU1JOYXVmZ3MxN0dYQVVROzE7dG90YWxfaGl0czozOw==",
"took"=>2,
"timed_out"=>false,
"_shards"=>{
"total"=>5,
"successful"=>2,
"failed"=>3,
"failures"=>[
{"status"=>500, "reason"=>"SearchContextMissingException[No search context found for id [784]]"}, {"status"=>500, "reason"=>"SearchContextMissingException[No search context found for id [787]]"},
{"status"=>500, "reason"=>"SearchContextMissingException[No search context found for id [783]]"}
]
},
"hits"=>{"total"=>3, "max_score"=>0.0, "hits"=>[{"_index"=>"widgets_137097586694", "_type"=>"widget", "_id"=>"15", "_score"=>0.0}]}
}
{
"_scroll_id"=>"c2NhbjsyOzc4NTprWFFSS01qU1JOYXVmZ3MxN0dYQVVROzc4NjprWFFSS01qU1JOYXVmZ3MxN0dYQVVROzE7dG90YWxfaGl0czozOw==",
"took"=>0,
"timed_out"=>false,
"_shards"=> {"total"=>5, "successful"=>5, "failed"=>0},
"hits"=>{
"total"=>3,
"max_score"=>0.0,
"hits"=>[
{"_index"=>"widgets_137097586694", "_type"=>"widget", "_id"=>"5", "_score"=>0.0},
{"_index"=>"widgets_137097586694", "_type"=>"widget", "_id"=>"10", "_score"=>0.0}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment