I just realized that I forgot to copy some scripts to all nodes, but when running a query over all documents in the index (--> so all nodes get to work) no error is shown and it does not crash.
Thing is, that the docs are also a bit ambiguous:
says in the box of dynamic scripting:
"You will still be able to use Groovy scripts stored in files in the config/scripts/ directory on every node."
This can also be interpreted that the scripts need to be save in any of the nodes to be usable, not on all.
I wonder what actually is happening, the scripts are to multiply _score with some function inside function_score, so I am curious to know whether it is rescoring all docs or not.
I also checked that when calling an unexisting script (on all nodes) instead it actually does crash...
So in resumee the post boils down to 2 question:
1)Do the scripts have to be on all nodes?
2) If yes, why did I not get any error?