Hey, you could index this as a geo shape (as this is valid GeoJSON). If you really need the functionality for a geo_point, you need to change the structure of the data.
--Alex On Sat, May 31, 2014 at 3:36 PM, Brian Thomas <mynamei...@gmail.com> wrote: > 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 elasticsearch+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/0e688310-5777-4906-889e-cd77693c3908%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/0e688310-5777-4906-889e-cd77693c3908%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_MA3vv%2Bpn%2Bdd%2BaUqn8ZWVatP6w7%3Dvdv%2Ba2rEYpeBs3Zg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.