我在java中编写了一个弹性搜索评分脚本插件,其结构与https://github.com/imotov/elasticsearch-native-script-example类似,并使用gradle汇编制作了一个zip文件,该文件存在于build / distributions文件夹中。我正在使用弹性搜索2.4版本。
我正在尝试通过
将插件安装到弹性搜索中./bin/plugin install file:/full/path/to/elasticsearch-native-script-example-3.0.0-SNAPSHOT.zip
但是我收到以下错误
ERROR: Plugin [elasticsearch-native-script-example] must be at least a jvm or site plugin
自动生成的plugin-descriptor.properties文件不包含jvm = true,
如何修改项目以在plugin-descriptor.properties中指定jvm = true。请指教。