how to to index computed/scripted fields in elasticsearch?
i see from documentation that it is possible to run scripts on update and
query, but i cant find anything about indexing
feels like it will be quite useful feature
the problem i have is, that im trying to index json document that have
latitude and longitude as 2 separate fields, for example:
and i want to index it into geo_point field in elasticsearch
i will like to avoid any transformations of the document before indexing
(as i pull json objects from external source and index them into
elasticsearch without "understanding" the document structure)
so what im looking for is to be able to define mapping for that field like
that:
just in case someone else will have similar problem,
i created elasticsearch plugin for handling computed fields:
Cheers,
On Tuesday, October 15, 2013 6:36:05 PM UTC+1, Karol Gwaj wrote:
Hi,
how to to index computed/scripted fields in elasticsearch?
i see from documentation that it is possible to run scripts on update and
query, but i cant find anything about indexing
feels like it will be quite useful feature
the problem i have is, that im trying to index json document that have
latitude and longitude as 2 separate fields, for example:
and i want to index it into geo_point field in elasticsearch
i will like to avoid any transformations of the document before indexing
(as i pull json objects from external source and index them into
elasticsearch without "understanding" the document structure)
so what im looking for is to be able to define mapping for that field like
that:
So this is not possible right? It would be really easy to have such a
feature in our mappings.
On Wednesday, 16 October 2013 01:36:05 UTC+8, Karol Gwaj wrote:
Hi,
how to to index computed/scripted fields in elasticsearch?
i see from documentation that it is possible to run scripts on update and
query, but i cant find anything about indexing
feels like it will be quite useful feature
the problem i have is, that im trying to index json document that have
latitude and longitude as 2 separate fields, for example:
and i want to index it into geo_point field in elasticsearch
i will like to avoid any transformations of the document before indexing
(as i pull json objects from external source and index them into
elasticsearch without "understanding" the document structure)
so what im looking for is to be able to define mapping for that field like
that:
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.