I want to build custom Elasticsearch scoring function and see that combines TF-IDF similarities of some document fields with relative given parameters with the help. As Elasticsearch scripts provide access to some Lucene functionality with Lucene expressions language, I hope it's possible to use Lucene implementation of a TF-IDF.
Unfortunately, I see almost no documentation and examples for lucene expression scripts for scoring functions. Is it possible? And how?