I am new to elasticsearch, and I want to develop an elasticsearch plugin for rescoring. I was looking through the web and found an example plugin in elasticsearch repository, Expert Scoring Script (https://github.com/elastic/elasticsearch/tree/master/plugins/examples/script-expert-scoring). But I am not sure how to install this plugin and use it in the search.
Any help/suggestions would be greatly appreciated.
you can clone the elasticsearch repository, change to the correct branch or tag of the version you want to build against, and then run
cd plugins/examples/script-expert-scoring
../../../gradlew assemble
This will leave you with a zip file that you can install via elasticsearch-plugin. If you write your own plugin, you separate this from elasticsearch however. This is an external example plugin https://github.com/spinscale/elasticsearch-ingest-opennlp
This worked fine for building and installing the plugin. Thanks for the help.
But the "script-expert-scoring" plugin doesn't seem to work as expected. I am getting the result for postings as null: PostingsEnum postings = context.reader().postings(new Term(field, term));
while debugging this issue, I checked the value for context.reader(), it looked fine.
also checked the value of new Term(field,term) and this is also fine.
But the postings(new Term(field,term) is null.
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.