org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed
at org.elasticsearch.painless.node.SWhile.analyze(SWhile.java:74)
at org.elasticsearch.painless.node.SSource.analyze(SSource.java:190)
at org.elasticsearch.painless.node.SSource.analyze(SSource.java:162)
at org.elasticsearch.painless.Compiler.compile(Compiler.java:104)
at org.elasticsearch.painless.PainlessScriptEngineService$2.run(PainlessScriptEngineService.java:171)
at org.elasticsearch.painless.PainlessScriptEngineService$2.run(PainlessScriptEngineService.java:168)
at org.elasticsearch.painless.PainlessScriptEngineService.compile(PainlessScriptEngineService.java:168)
at org.elasticsearch.script.ScriptService.compileInternal(ScriptService.java:339)
at org.elasticsearch.script.ScriptService.compile(ScriptService.java:235)
at org.elasticsearch.script.ScriptService.search(ScriptService.java:490)
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:738)
at org.elasticsearch.search.SearchService.createContext(SearchService.java:534)
at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:501)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:242)
at org.elasticsearch.action.search.SearchTransportService.lambda$registerRequestHandler$667(SearchTransportService.java:276)
at org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33)
at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
at org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:548)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:504)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
at org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:548)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:504)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.