mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
move to elasticsearch 0.19.0 snap and use some of its features
This commit is contained in:
parent
65ada1b75a
commit
1b85f22e0a
@ -8,7 +8,7 @@ In order to install the plugin, simply run: `bin/plugin -install elasticsearch/e
|
||||
---------------------------------------
|
||||
| Python Plugin | ElasticSearch |
|
||||
---------------------------------------
|
||||
| master | 0.18 -> master |
|
||||
| master | master (0.19) |
|
||||
---------------------------------------
|
||||
| 1.0.0 | 0.18 -> master |
|
||||
---------------------------------------
|
||||
|
2
pom.xml
2
pom.xml
@ -30,7 +30,7 @@
|
||||
</parent>
|
||||
|
||||
<properties>
|
||||
<elasticsearch.version>0.18.5</elasticsearch.version>
|
||||
<elasticsearch.version>0.19.0-SNAPSHOT</elasticsearch.version>
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
|
@ -19,7 +19,6 @@
|
||||
|
||||
package org.elasticsearch.plugin.python;
|
||||
|
||||
import org.elasticsearch.common.inject.Module;
|
||||
import org.elasticsearch.plugins.AbstractPlugin;
|
||||
import org.elasticsearch.script.ScriptModule;
|
||||
import org.elasticsearch.script.python.PythonScriptEngineService;
|
||||
@ -39,10 +38,7 @@ public class PythonPlugin extends AbstractPlugin {
|
||||
return "Python plugin allowing to add javascript scripting support";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void processModule(Module module) {
|
||||
if (module instanceof ScriptModule) {
|
||||
((ScriptModule) module).addScriptEngine(PythonScriptEngineService.class);
|
||||
}
|
||||
public void onModule(ScriptModule module) {
|
||||
module.addScriptEngine(PythonScriptEngineService.class);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user