Skip to content

Instantly share code, notes, and snippets.

@tebriel
Created December 30, 2014 17:06
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 tebriel/520e8e8d7555f4139892 to your computer and use it in GitHub Desktop.
Save tebriel/520e8e8d7555f4139892 to your computer and use it in GitHub Desktop.
POST /pindrop/_search HTTP/1.1
Content-Type: application/json
Host: logstash.local:9200
Connection: close
User-Agent: Paw/2.1.1 (Macintosh; OS X/10.10.2) GCDHTTPRequest
Content-Length: 209
{
size: 0,
"aggregations" : {
"myLarge-GrainGeoHashGrid" : {
"geohash_grid" : {
"field" : "location",
"precision" : 3
}
}
}
}
{
"_shards": {
"failed": 0,
"successful": 1,
"total": 1
},
"aggregations": {
"myLarge-GrainGeoHashGrid": {
"buckets": []
}
},
"hits": {
"hits": [],
"max_score": 0.0,
"total": 3336419
},
"timed_out": false,
"took": 103
}
{
"template_pindrop": {
"aliases": {},
"mappings": {
"call_location": {
"properties": {
"location": {
"type": "geo_point"
}
}
}
},
"order": 0,
"settings": {
"index.number_of_replicas": "0",
"index.number_of_shards": "1"
},
"template": "pindrop*"
}
}
{
"_index": "pindrop_rev3",
"_type": "api",
"_id": "AUqcIyssv_-yUajZ4iIN",
"_score": 1,
"_source": {
"@version": "1",
"@timestamp": "2014-12-01T22:36:09.000Z",
"call_location_geojson": [
-73.045803,
41.551994
],
"call_location": {
"location": {
"lat": 41.551994,
"lon": -73.045803
}
}
},
"fields": {
"@timestamp": [
1417473369000
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment