# Geo\_point index create in Elasticsearch

**URL:** https://discuss.elastic.co/t/geo-point-index-create-in-elasticsearch/199029
**Category:** Elasticsearch
**Created:** [September 11, 2019, 7:31am UTC](https://discuss.elastic.co/t/geo-point-index-create-in-elasticsearch/199029 "2019-09-11T07:31:32Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [September 16, 2019, 8:51pm UTC](https://discuss.elastic.co/t/geo-point-index-create-in-elasticsearch/199029/10 "2019-09-16T20:51:57Z")

</div>

hi @ashok9177

You need to create a mapping first that has a geo\_point data type first _before_ you index the data

See This Thread is may help

> [@Convert lat and long to geohash](https://discuss.elastic.co/t/convert-lat-and-long-to-geohash/197631):
>
> I have done quite a bit of searching, but either don't know what I am doing wrong, or don't know the right question to ask. I am ingesting data, including latitude and longitude, and converting them to floats like this: filter { ruby { path =\> "/opt/bitnami/logstash/chop.rb" } mutate { rename =\> { "stop\_lon" =\> "[location][lon]" "stop\_lat" =\> "[location][lat]" } } However, I need to convert the location to a geohash so I can do mapping, but I am struggling to f…

---

_[View the full topic](https://discuss.elastic.co/t/geo-point-index-create-in-elasticsearch/199029)._
