Elasticsearch Index Polygons?

Hi,

Will this help you?

2015-02-24 14:38 GMT+09:00 Sai Asuka asuka.shin@gmail.com:

So I see the elasticsearch claims to use "GeoJSON" as the format for
indexing... but when I look at the docs.. the same it gives is:

{
"location" : {
"type" : "polygon",
"coordinates" : [
[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ]
]
}
}

Doesn't GeoJSON look like this?

{
"type": "Feature",
"properties": {
"name": "Sparkle",
"age": 11
},
geometry: {
"type" : "polygon",
"coordinates" : [[[100.0, 0.0], [101.0,0.0], [101.0, 1.0], [100.0],
[100.0, 0.0]]]
}
}

My question is how do I index polygons in elasticsearch if I want to
attach properties to it? If I wanted to perform a bulk load for example,
what does one document look like that has polygon information that I can
perform geospatial queries on?

--
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/41cd2d8a-e5e1-450b-bb2f-d9ddac69633b%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/41cd2d8a-e5e1-450b-bb2f-d9ddac69633b%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--

Jun Ohtani
blog : http://blog.johtani.info

--
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/CAPW8A5yKUahAPmHRVMTY5o-rK45YQ9TijXtuBSYP9UBeapEREA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.