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.
I've tried adding this to my mapping
--------------------
"transform" : {
"script" : "ctx._source['date_created'] =
ctx._source['date_created'] * 1000;",
"lang": "groovy"
},
"properties" : { ...
--------------------
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?
Best,
Nick
--
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/5cf1ca40-3ae4-4555-ae75-733a1d8d4571%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.