I was given a development cluster with 2 nodes, there're about 700 indexes there. I installed a plugin and it works very inconsistently. Sometimes it works normally, sometimes when I modify the code a bit, I can build and install the new code successfully but when I run query, it throws an error that "Native script [abc] not found". Then I modify the code and install again, it works again. Note again that there was no error every time I install the plugin. And of course I did restart elastic every time I install the plugin. Can anyone help pinpoint the possible reason for that behavior? Thanks a lot.
Btw I'm using Elasticsearch 1.7 and the cluster's health status is always yellow!
Currently I am testing the Cosine Similarity Script by Imotov on github:
And here's the error I got:
nested: QueryParsingException[[example_index] script_score the script could not be loaded]; nested: ElasticsearchIllegalArgumentException[Native script [cosine_sim_script_score] not found]
It's a development cluster so quite a few people used/are using it to test and might forget to delete their data in the end.
The plugin is put in elastic/plugins along with other plugins. Like I said, sometimes it was able to find the script, but sometimes just wasn't.
Btw, if I already have the plugin installed, then I modify the code a little bit, rebuild, then reinstall, the plugin name still stays the same, do I have to restart Elasticsearch? Currently I restart elastic every time I install even though some time the change is very minor.
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.