# How to enter multi valued geo\_point attribute in elastic search

**URL:** <https://discuss.elastic.co/t/how-to-enter-multi-valued-geo-point-attribute-in-elastic-search/21430>\
**Category:** Elasticsearch\
**Created:** [December 30, 2014, 7:17am UTC](https://discuss.elastic.co/t/how-to-enter-multi-valued-geo-point-attribute-in-elastic-search/21430 "2014-12-30T07:17:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhimanyu\_Nagrath](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhimanyu_nagrath/32/48724_2.png) [@Abhimanyu\_Nagrath](https://discuss.elastic.co/u/Abhimanyu_Nagrath)\
**Post date:** [December 30, 2014, 7:17am UTC](https://discuss.elastic.co/t/how-to-enter-multi-valued-geo-point-attribute-in-elastic-search/21430/1 "2014-12-30T07:17:10Z")

</div>

Hi,  
I want to know the way to enter multi valued geo\_point attribute in  
elastic search?at present i am using  
[{"lat":-40.2345,"lon":-30.2345},{"lat":-25.5678,"lon":-23.6789}] i am able  
to enter but i am not able see the data entry on elastic search UI and also  
not able to query.So please tell me that wether I am doing any thig wrong  
or is there any other way.  
Thank You  
Abhimanyu

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/cc41fe0f-ec5c-4b1e-a608-b23cfb73ee60%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cc41fe0f-ec5c-4b1e-a608-b23cfb73ee60%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Nicholas\_Knize](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@Nicholas\_Knize](https://discuss.elastic.co/u/Nicholas_Knize)\
**Post date:** [December 30, 2014, 8:07pm UTC](https://discuss.elastic.co/t/how-to-enter-multi-valued-geo-point-attribute-in-elastic-search/21430/2 "2014-12-30T20:07:03Z")

</div>

Hello Abhimanyu,

Below is a simple example for creating a geo\_shape mapping and inserting a  
MultiPoint document. For further detail on inserting different geometry  
types be sure to have a look at

> **[Elastic — The Search AI Company](https://www.elastic.co)**
>
> Power insights and outcomes with The Elastic Search AI Platform. See into your data and find answers that matter with enterprise solutions designed to help you accelerate time to insight. Try Elastic ...

# create index

curl -XPUT "[http://localhost:9200/geoshapes?pretty=true](http://localhost:9200/geoshapes?pretty=true)" -d'  
{  
"mappings": {  
"venues": {  
"properties": {  
"name" : {  
"type" : "string"  
},  
"location" : {  
"type" : "geo\_shape",  
"tree" : "quadtree",  
"precision" : "1m"  
}  
}  
}  
}  
}';

# insert a multi point

curl -XPUT "[http://localhost:9200/geoshapes/venues/1?pretty=true](http://localhost:9200/geoshapes/venues/1?pretty=true)' -d '  
{  
"name": "Chipotle Mexican Grill",  
"location": {  
"type" : "MultiPoint",  
"coordinates": [  
[-74.011, 40.715],  
[-74.123, 41.325],  
[-73.224, 41.522]  
]  
}  
}'

# query all

curl -XGET "[http://localhost:9200/geoshapes/venues/\_search?pretty=true](http://localhost:9200/geoshapes/venues/_search?pretty=true)" -d '  
{  
"query": {  
"match\_all":{}  
}  
}'

On Tuesday, December 30, 2014 1:17:10 AM UTC-6, Abhimanyu Nagrath wrote:

> Hi,  
> I want to know the way to enter multi valued geo\_point attribute in  
> Elasticsearch?at present i am using  
> [{"lat":-40.2345,"lon":-30.2345},{"lat":-25.5678,"lon":-23.6789}] i am able  
> to enter but i am not able see the data entry on Elasticsearch UI and also  
> not able to query.So please tell me that wether I am doing any thig wrong  
> or is there any other way.  
> Thank You  
> Abhimanyu

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/75d8c2a6-8f46-4df1-8383-53996722387d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/75d8c2a6-8f46-4df1-8383-53996722387d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:41am UTC](https://discuss.elastic.co/t/how-to-enter-multi-valued-geo-point-attribute-in-elastic-search/21430/3 "2017-07-06T00:41:25Z")

</div>


