Is there anyway to mapping type this structure for Spatial Search ElasticSearch:
"coordinates" : {
"type" : "Point",
"coordinates" : [
100.41404641,
5.37384675
]
},
I was wondering to use this as it comes from my MongoDB for geo-point type without splitting them into lat and long fields like existing tutorials and examples.
This structure is what Twitter API streams as a default, so I could save it as "location":{ "lat": 100.41, "long": 5.34 } into MongoDB. But before adding extra fields to my database or changing things I want to make sure there is no way to use this structure for spatial search in ElasticSearch.
Thanks