This plugin add Velocity language to Elasticsearch.
Please file an issue.
$ $ES_HOME/bin/elasticsearch-plugin install org.codelibs:elasticsearch-lang-velocity:7.6.0
This plugin supports an executable script language(search script is not supported).
Using Script-based Search Template Plugin, you can search by Velocity template.
GET /_search/script_template
{
"lang": "velocity",
"inline": "{\"query\": {\"match\": {\"title\": \"${query_string}\"}}}",
"params": {
"query_string": "search for these words"
}
}
The directory is ${es.config}/scripts. The file extension for Velocity's template is .vm or .velocity.
To use a template cache for Velocity template, please prepend "##cache" to the template file.