Hi

I'm trying to set up an environment with Solr running under Docker but with
the Javascript scripting engine available for doing some "update processor
scripting".
I'm working with the official Solr 9.9 Docker image, which uses, as far as
I know, Java v.17 that doesn't have native support for Javascript.

I have tried do add the following .jar files under /opt/solr/lib

https://repo1.maven.org/maven2/org/graalvm/js/js-scriptengine/23.0.9
/js-scriptengine-23.0.9.jar
https://repo1.maven.org/maven2/org/graalvm/truffle/truffle-api/23.0.9
/truffle-api-23.0.9.jar"
https://repo1.maven.org/maven2/org/graalvm/js/js/23.0.9/js-23.0.9.jar";
https://repo1.maven.org/maven2/regexp/regexp/1.3/regexp-1.3.jar

And started the docker image with the environment variable "
SOLR_MODULES=scripting"

Still when I try to create my core with the following configuration in
solrconfi.xml:
<updateRequestProcessorChain name="script-normalization-chain">

<processor class=
"org.apache.solr.scripting.update.ScriptUpdateProcessorFactory">
<str name="script">normalize.js</str>
<str name="engine">js</str>
</processor>

<processor class="solr.LogUpdateProcessorFactory" />
<processor class="solr.RunUpdateProcessorFactory" />

</updateRequestProcessorChain>

It fails with the following error:
Unable to create core [...my_core_name...] Caused by: No ScriptEngine found
by name: js -- supported names:

Does anyone have a clue for this?


Thanks
Leonardo

Reply via email to