Using custom native plugin within embedded ES node

I have been using embedded ES nodes as a mean of easily unit/integration
testing my search client code. But now I have a custom Native Script plugin
and I was how I could tell the embedded ES node to use the custom Native
Plugin.

  1. Is it as simple as giving it a Settings with
    "script.native.myplugin.type: com.whatever.MyPluginFactory"?
  2. When deploying the plugin to ES it needs to be under a subdirectory of
    plugin directory named "myplugin" as named above. Does this still matter or
    is it enough to have the MyPlugin jar in the maven dependencies (i.e.
    classpath)?

Thanks,
Peter

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

it is enough to be in the class path and configure it via settings.
Elasticsearch uses that mechanism, when the tests are run, see

https://github.com/elasticsearch/elasticsearch/blob/master/src/test/java/org/elasticsearch/script/NativeScriptTests.java

--Alex

On Sat, Oct 19, 2013 at 5:18 PM, peter@vagaband.co peter@vagaband.cowrote:

I have been using embedded ES nodes as a mean of easily unit/integration
testing my search client code. But now I have a custom Native Script plugin
and I was how I could tell the embedded ES node to use the custom Native
Plugin.

  1. Is it as simple as giving it a Settings with
    "script.native.myplugin.type: com.whatever.MyPluginFactory"?
  2. When deploying the plugin to ES it needs to be under a subdirectory of
    plugin directory named "myplugin" as named above. Does this still matter or
    is it enough to have the MyPlugin jar in the maven dependencies (i.e.
    classpath)?

Thanks,
Peter

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Perfect. That worked. Thanks a lot.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.