I'm trying to implement a transform script when my data is being indexed,
but it doesn't seem to have any affect. I basically want to multiply a
date_created field by 1000.
When I index documents, I don't get any errors, but I also can't tell that
the script actually ran or changed the data. How would I troubleshoot
whether this script is even firing, and if so, why it's not updating the
data?
I'd add a new field and check for it. Or do a search that won't find
anything unless it took effect. The document is stored untransformed so
just fetching the document won't show you anything.
On Dec 22, 2014 12:35 PM, "Nick Wood" nwood888@gmail.com wrote:
Hello,
I'm trying to implement a transform script when my data is being indexed,
but it doesn't seem to have any affect. I basically want to multiply a
date_created field by 1000.
When I index documents, I don't get any errors, but I also can't tell that
the script actually ran or changed the data. How would I troubleshoot
whether this script is even firing, and if so, why it's not updating the
data?
This wont change the _source , so no point in looking there.
Try script field to read the data of this field from store ( if enabled )
or reverse index.
I'm trying to implement a transform script when my data is being indexed,
but it doesn't seem to have any affect. I basically want to multiply a
date_created field by 1000.
When I index documents, I don't get any errors, but I also can't tell that
the script actually ran or changed the data. How would I troubleshoot
whether this script is even firing, and if so, why it's not updating the
data?
Also, once a script is modified, it appears as though the type has to be
deleted and the mapping re-applied for the changes to take effect.
Nick
On Monday, December 22, 2014 10:35:08 AM UTC-7, Nick Wood wrote:
Hello,
I'm trying to implement a transform script when my data is being indexed,
but it doesn't seem to have any affect. I basically want to multiply a
date_created field by 1000.
When I index documents, I don't get any errors, but I also can't tell that
the script actually ran or changed the data. How would I troubleshoot
whether this script is even firing, and if so, why it's not updating the
data?
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.