I am new to Elasticsearch and I am trying to index a json document with a
nonstandard lat/long format.
I know the standard format for a geo_point array is [lon, lat], but the
documents I am indexing has format [lat, lon].
This is what the JSON element looks like:
"geo": {
"type": "Point",
"coordinates": [
38.673459,
-77.336781
]
}
Is there anyway I could have elasticsearch reorder this array or convert
this field to a string without having to modify the source document prior
to indexing? Could this be done using a field mapping or script in
elasticsearch?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/0e688310-5777-4906-889e-cd77693c3908%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.