Hi,
I ingest data from CouchDB into ElasticSearch and would like my lat, lon to
be mapped as geo_type, but I don't know how to do it, since my lat, lon is
not fitting any of the geo_type examples from the guide.
My data looks like this:
"location": {
"latitude": 37.632571793,
"name": "Pacifica Pier",
"longitude": -122.494277492,
"id": 5076543
}
(of course there are a bunch of other fields)
Since the "location" doesn't have an array [lat, lon] I'm not sure how to specify the type to be "geo_type".
Would something like this work?
"location":{
"properties":{
"id":{"type":"long"},
"latitude":{"type":"geo_type"},
"longitude":{"type":"geo_type"},
"name":{"type":"string"}
}
}
How can I combine the two values into one array?
I'd highly appreciate any suggestions or help.
Thanks!
--
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.
For more options, visit https://groups.google.com/groups/opt_out.