We found that the developers indexes were cleared yesterday.
We created new indexes and the appropriate ps scripts were run to check dynamic mappings.
But during the indexing the errors appeared:
2015-02-25 09:36:19,927  ERROR Customer.Commerce.Business.Search.FindProvider.FindSearchProvider: Indexing error:
ElasticSearchIllegalArgumentException[failed to execute script]; nested: ScriptException[dynamic scripting disabled];
How could we fix the issue with developer indexes?
We are using "Random2Find" lib, that uses script-based sorting. Find started returning "400 Bad Request" in development environments recently. We have a similar error: "ScriptException[dynamic scripting disabled]". Didn't fix it yet :(
And yes, production indexes work fine.
Thank you for reply.
What version of elasticsearch is used for developer indexes?
I don't know. I wrote a request to EPiServer support regarding this problem and waiting for their help.
As I found out from EPiServer, in EPiServer.Find 9 custom scripting is disabled, so you will need to find another way how to solve your tasks.
I assume this was done for security reasons.
"Random2Find" lib was updated a week ago and it uses native "randomvaluegenerator" instead of custom scripting, so it works fine with Find 9. This update fixed our issue.