I understand a geo-point can be mapped based on two fields : "lat", "long".
However my fields are name "longitude" and "latitude".
I'm using the river plugin for couchdb and I cannot really rename those
fields before indexing. And those fields are part of an item in an array:
I understand a geo-point can be mapped based on two fields : "lat", "long".
However my fields are name "longitude" and "latitude".
I'm using the river plugin for couchdb and I cannot really rename those fields before indexing. And those fields are part of an item in an array:
Thanks for your reply.
I know I tried that, but it's in an array, so Iw ould need to iterate or
something, because trying to map the path leads to an error if there is an
array:
Here, items is an array: ctx.doc.items.location.longitude
That's why i'm looking for an alternative solution.
On Monday, July 7, 2014 4:16:48 PM UTC+10, David Pilato wrote:
You could may be try to use script filters and add on the fly lat and lon
fields or a String representing your point.
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 7 juil. 2014 à 02:23, Olivier B <obie...@gmail.com <javascript:>> a
écrit :
Hi there,
I understand a geo-point can be mapped based on two fields : "lat", "long".
However my fields are name "longitude" and "latitude".
I'm using the river plugin for couchdb and I cannot really rename those
fields before indexing. And those fields are part of an item in an array:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.