Hi! Could someone show a simple script (javascript, python) that is stored
in scripts directory and takes some arguments? Could it be a user-defined
function? Some example of script and its usage would be very helpful.
Thanks!
Which calls myscript.py on the server. The python variable 'tag' is set to
the value 'foo' when the script starts.
My script doesn't do everything that I want (since I've also been unable to
find any examples), but it does do this part properly...
Note that you have to restart ES when you make changes to the script.
On Wednesday, February 6, 2013 1:12:26 AM UTC-8, andrexus wrote:
Hi! Could someone show a simple script (javascript, python) that is stored
in scripts directory and takes some arguments? Could it be a user-defined
function? Some example of script and its usage would be very helpful.
Thanks!
@rastro can you please share the content of myscript.py
I'm trying to write a script that will extract some content based on the parameter passed to the script and return that content as a new field in the response.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.