Re: Elasticsearch 1.3 Transform Scripts

2014-08-07 Thread vineeth mohan
Hi , I was looking for this. Thanks buddy. Thanks Vineeth On Mon, Aug 4, 2014 at 5:22 PM, amrelhagary amr.elhag...@gmail.com wrote: I have a problem i need to add dynamic fields according to certain fields value , i use groovy in simple case and it worked but the logic become

Re: Elasticsearch 1.3 Transform Scripts

2014-08-07 Thread amrelhagary
Hello , after several tries finally i found a solution https://gist.github.com/amrelhagary/f664c4bc239698a9b293 -- View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Elasticsearch-1-3-Transform-Scripts-tp4060592p4061415.html Sent from the ElasticSearch Users mailing

Re: Elasticsearch 1.3 Transform Scripts

2014-08-05 Thread amrelhagary
I have a problem i need to add dynamic fields according to certain fields value , i use groovy in simple case and it worked but the logic become more complicated and i need to separate it in external groovy script file and pass context as parameters but it didn't work and this must in mapping

Re: Elasticsearch 1.3 Transform Scripts

2014-07-25 Thread joergpra...@gmail.com
Yeah, I use Groovy for input data transformations for years, so I'm very enthusiastic about ES embracing Groovy as default. I use Groovy scripts before the source is passed to the bulk client, in a key/value stream processing. It's good to see transformation machinery in the ES mapping, but I do

Elasticsearch 1.3 Transform Scripts

2014-07-24 Thread Matt Weber
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

Re: Elasticsearch 1.3 Transform Scripts

2014-07-24 Thread Nikolas Everett
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

Re: Elasticsearch 1.3 Transform Scripts

2014-07-24 Thread Matt Weber
Yea, I really like it. I have been thinking about the exact same thing for a while but never had the time to put it together. I do have some things I would like to add such as the ability to stop a document from being indexed when the doc has/does not have a specific value. At any rate, great