I wanted to do conditional copy_to and Andrian suggested implementing scripted transforms instead. Much more flexible. They mesh well with the shift to groovy too because groovy is much more stable. Stable enough to run on every insert.
I'm glad you are excited by it. It was fun to build and I hope lots of people enjoy it. Nik On Jul 24, 2014 9:22 PM, "Matt Weber" <[email protected]> wrote: > Just wanted to bring attention to the new and *very* useful transform > scripts that were introduced in elasticsearch 1.3 [1]. This feature allows > you to manipulate the source BEFORE it is indexed so you can do things like > add/remove fields, change field values, etc. Groovy scripts will be the > default, but you can write native transform scripts as well [2]. > > [1] > http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-transform.html#mapping-transform > [2] https://github.com/imotov/elasticsearch-native-script-example/pull/7 > > Thanks, > Matt Weber > > -- > 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/5647d22b-9365-449d-922c-b5ed349c7826%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/5647d22b-9365-449d-922c-b5ed349c7826%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPmjWd2N6KNnJ%3D7kVtiyS3UE45j36ktGxT%3DiDuPsDxMuwKGAPw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
