Hi Nick ,

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.

Thanks
          Vineeth

On Mon, Dec 22, 2014 at 11:05 PM, Nick Wood <nwood...@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.
>
> 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 elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/5cf1ca40-3ae4-4555-ae75-733a1d8d4571%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/5cf1ca40-3ae4-4555-ae75-733a1d8d4571%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/CAGdPd5nOVjnbQgLBCqs4SfY93x41b3x1S3omMH0fwxowsH836w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to