# ES 5.2.2 geohash string match query required

**URL:** <https://discuss.elastic.co/t/es-5-2-2-geohash-string-match-query-required/78526>\
**Category:** Elasticsearch\
**Created:** [March 14, 2017, 1:39pm UTC](https://discuss.elastic.co/t/es-5-2-2-geohash-string-match-query-required/78526 "2017-03-14T13:39:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahbaz.atta](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@shahbaz.atta](https://discuss.elastic.co/u/shahbaz.atta)\
**Post date:** [March 14, 2017, 1:39pm UTC](https://discuss.elastic.co/t/es-5-2-2-geohash-string-match-query-required/78526/1 "2017-03-14T13:39:16Z")

</div>

I recently installed ES 5.2.2 I am looking for my data migration and query migration. I wanted to know, how can we query the points within specified geohash string?

```
GET my_type/_search
{
  "query": {"term": {"location.geohash": "9q8yy"}}
}
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 11, 2017, 1:39pm UTC](https://discuss.elastic.co/t/es-5-2-2-geohash-string-match-query-required/78526/2 "2017-04-11T13:39:29Z")

</div>

Closed on April 11, 2017, 1:39pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
