# Not able to create index(with geo\_point mapping) in elasticsearch 7.3.0

**URL:** <https://discuss.elastic.co/t/not-able-to-create-index-with-geo-point-mapping-in-elasticsearch-7-3-0/196002>\
**Category:** Elasticsearch\
**Created:** [August 20, 2019, 8:53pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-with-geo-point-mapping-in-elasticsearch-7-3-0/196002 "2019-08-20T20:53:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hs\_Kishore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hs_kishore/32/52575_2.png) [@Hs\_Kishore](https://discuss.elastic.co/u/Hs_Kishore)\
**Post date:** [August 20, 2019, 8:53pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-with-geo-point-mapping-in-elasticsearch-7-3-0/196002/1 "2019-08-20T20:53:35Z")

</div>

Hi,  
Here is the curl command that I'm using to create an index with geo\_point mapping in elasticsearch. The command works fine in elasticsearch 6.8.2, but fails to execute in 7.3.0.  
command:  
curl -H "Content-Type: application/json" -XPUT '[http://x.x.x.x/final](http://x.x.x.x/final)' -d '  
{  
"settings" : {  
"number\_of\_shards" : 1,  
"number\_of\_replicas" : 0  
},  
"mappings" : {  
"sales" : {  
"properties" : {  
"location" : {  
"type" : "geo\_point"  
}  
}  
}  
}  
}'

Error: curl: (7) couldn't connect to host

there is no problem with the connection to elasticsearch instance. I can create an index without the mappings.

Thanks.

---

<div class="post-metadata">

**Author:** ![Hs\_Kishore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hs_kishore/32/52575_2.png) [@Hs\_Kishore](https://discuss.elastic.co/u/Hs_Kishore)\
**Post date:** [August 21, 2019, 4:58pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-with-geo-point-mapping-in-elasticsearch-7-3-0/196002/2 "2019-08-21T16:58:05Z")

</div>

Was able to debug little, but not all the way....

I was able to execute and create the index from Kibana Dev Tools.  
The PUT looks like:  
PUT testIndex  
{  
"settings" : {  
"number\_of\_shards" : 1,  
"number\_of\_replicas" : 0  
},  
"mappings" : {  
"properties" : {  
"location" : {  
"type" : "geo\_point"  
}  
}  
}  
}'

But, still not able to create the index with curl command.  
Did the curl command change?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 22, 2019, 12:25pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-with-geo-point-mapping-in-elasticsearch-7-3-0/196002/3 "2019-08-22T12:25:34Z")

</div>

your two requests are different, one contains a type (which is not needed anymore for 7.x), the other one does not.

Please provide the actual response in order to debug this further. Thanks!

---

<div class="post-metadata">

**Author:** ![Hs\_Kishore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hs_kishore/32/52575_2.png) [@Hs\_Kishore](https://discuss.elastic.co/u/Hs_Kishore)\
**Post date:** [August 22, 2019, 7:00pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-with-geo-point-mapping-in-elasticsearch-7-3-0/196002/4 "2019-08-22T19:00:48Z")

</div>

@spinscale, my bad I was just missing the port number in the curl command. It's working now.  
Thanks.

---

<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:** [September 19, 2019, 7:00pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-with-geo-point-mapping-in-elasticsearch-7-3-0/196002/5 "2019-09-19T19:00:50Z")

</div>

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