I'm playing around with groovy scripting.

By checking groovy lang plugin source code I found next steps in code 
execution:

1. Code compilation into script class

2. Script initialization via static method newInstance()

3. Script execution via calling the code on each document with binding 
document parameters

Now assume I have class declaration in my script. Is it possible to execute 
class definition and class object initialization only once, and execute 
only a method from this object on each document?

Thanks

P.S. posting the same on SO

-- 
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/bb3a9ca6-79fd-4ac6-ac78-ce0c102b9505%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to