Is it possible to plug-in Java or Python or Scala customized function (any one of them is ok) into ElasticSearch cluster, so that for each returned documents, we can use the customized function to calculate a document score based on fields of documents? And return ordered document based on customized function score?
See the script_score. You can use a native script if you are ok with deploying it into Elasticsearch's classpath. If its simple enough you can use "expression" which is the Lucene Expression language. Its plenty for lots of use cases and its fast and sandboxed.
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.