Thanks for the help.
My working solution is:
1. Create the plugins/scripts directory created in /tmp for each test node
2. copy my script jar into it
3. Register script in settings:
.put(script.native.NAME.type, NAME OF SCRIPT)
I am super grateful for all your help. Btw, I wasn't creating it
Is there a way to have a native java script accessible in integration
tests? In my integration tests I am creating a test node in the /tmp
folder.
I've tried copying the script to /tmp/plugins/scripts but that was quite
hopeful and unfortunately does not work.
Desperate for help.
Thanks
--
I might be wrong but I think that scripts should be located in config/scripts,
right?
--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr
Le 30 juillet 2014 à 11:31:10, Nick T (nttod...@gmail.com) a écrit:
Is there a way to have a native java script
Hi,
I have tried the same approach and it worked for me, meaning to copy the
script I want to perform an integration test and run my IT.
I do the following steps
1) Setup the required paths for elasticsearch
final Settings settings
= settingsBuilder()
I have noticed that you mention native java script so you have implemented
it as a plugin?
if so try the following in your settings:
final Settings settings
= settingsBuilder()
...
.put(plugin.types, YourPlugin.class.getName())
Thomas
On Wednesday, 30