Skip to content

Instantly share code, notes, and snippets.

@bobrik
Created February 22, 2014 09:41
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 bobrik/9151238 to your computer and use it in GitHub Desktop.
Save bobrik/9151238 to your computer and use it in GitHub Desktop.
{
"geos" : {
"mappings" : {
"point" : {
"properties" : {
"location" : {
"type" : "geo_point"
}
}
}
}
}
}
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 2,
"max_score" : 1.0,
"hits" : [ {
"_index" : "geos",
"_type" : "point",
"_id" : "two",
"_score" : 1.0, "_source" : {"location":"61,31"}
}, {
"_index" : "geos",
"_type" : "point",
"_id" : "one",
"_score" : 1.0, "_source" : {"location":[60,30]}
} ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment