How to enter multi valued geo_point attribute in elastic search

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/cc41fe0f-ec5c-4b1e-a608-b23cfb73ee60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-geo-shape-type.html

create index

curl -XPUT "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' -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" -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
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/75d8c2a6-8f46-4df1-8383-53996722387d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.