SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures

Alpha1

Well-known member
My searches result in this error:


Error Info
XenForo_Exception: Elasticsearch error: SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[knwa9KazRT2XTtrhxggGdQ][area51][1]: SearchParseException[[area51][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"function_score":{"boost_mode":"replace","query":{"query_string":{"query":"mysearch","fields":["title^3","message"],"default_operator":"and"}},"script_score":{"params":{"now":1403545297,"halflife":31536000},"script":"_score \/ pow(2.0f, min(10.0f * halflife, abs(now - doc['date'].value + .0f)) \/ (halflife + .0f))"}}},"sort":[{"_score":"desc"},{"date":"desc"}],"size":500,"fields":["discussion_id","user","date"]}]]]; nested: QueryParsingException[[area51] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[knwa9KazRT2XTtrhxggGdQ][area51][2]: SearchParseException[[area51][2]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"function_score":{"boost_mode":"replace","query":{"query_string":{"query":"mysearch","fields":["title^3","message"],"default_operator":"and"}},"script_score":{"params":{"now":1403545297,"halflife":31536000},"script":"_score \/ pow(2.0f, min(10.0f * halflife, abs(now - doc['date'].value + .0f)) \/ (halflife + .0f))"}}},"sort":[{"_score":"desc"},{"date":"desc"}],"size":500,"fields":["discussion_id","user","date"]}]]]; nested: QueryParsingException[[area51] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[knwa9KazRT2XTtrhxggGdQ][area51][3]: SearchParseException[[area51][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"function_score":{"boost_mode":"replace","query":{"query_string":{"query":"mysearch","fields":["title^3","message"],"default_operator":"and"}},"script_score":{"params":{"now":1403545297,"halflife":31536000},"script":"_score \/ pow(2.0f, min(10.0f * halflife, abs(now - doc['date'].value + .0f)) \/ (halflife + .0f))"}}},"sort":[{"_score":"desc"},{"date":"desc"}],"size":500,"fields":["discussion_id","user","date"]}]]]; nested: QueryParsingException[[area51] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[knwa9KazRT2XTtrhxggGdQ][area51][4]: SearchParseException[[area51][4]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"function_score":{"boost_mode":"replace","query":{"query_string":{"query":"mysearch","fields":["title^3","message"],"default_operator":"and"}},"script_score":{"params":{"now":1403545297,"halflife":31536000},"script":"_score \/ pow(2.0f, min(10.0f * halflife, abs(now - doc['date'].value + .0f)) \/ (halflife + .0f))"}}},"sort":[{"_score":"desc"},{"date":"desc"}],"size":500,"fields":["discussion_id","user","date"]}]]]; nested: QueryParsingException[[area51] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[knwa9KazRT2XTtrhxggGdQ][area51][0]: SearchParseException[[area51][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"function_score":{"boost_mode":"replace","query":{"query_string":{"query":"mysearch","fields":["title^3","message"],"default_operator":"and"}},"script_score":{"params":{"now":1403545297,"halflife":31536000},"script":"_score \/ pow(2.0f, min(10.0f * halflife, abs(now - doc['date'].value + .0f)) \/ (halflife + .0f))"}}},"sort":[{"_score":"desc"},{"date":"desc"}],"size":500,"fields":["discussion_id","user","date"]}]]]; nested: QueryParsingException[[area51] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }] - library/XenES/Search/SourceHandler/ElasticSearch.php:828
Generated By: alfa, A moment ago
Stack Trace

#0 /mysite.com/public_html/library/XenES/Search/SourceHandler/ElasticSearch.php(288): XenES_Search_SourceHandler_ElasticSearch->_logSearchResponseError(Object(stdClass), true)
#1 /mysite.com/public_html/library/XenForo/Search/SourceHandler/Abstract.php(115): XenES_Search_SourceHandler_ElasticSearch->executeSearch('mysearch', false, Array, Array, false, '500')
#2 /mysite.com/public_html/library/XenForo/Search/Searcher.php(79): XenForo_Search_SourceHandler_Abstract->searchGeneral('mysearch', Array, 'relevance', '500')
#3 /mysite.com/public_html/library/XenForo/ControllerPublic/Search.php(235): XenForo_Search_Searcher->searchGeneral('mysearch', Array, 'relevance')
#4 /mysite.com/public_html/library/Tinhte/XenTag/XenForo/ControllerPublic/Search.php(33): XenForo_ControllerPublic_Search->actionSearch()
#5 /mysite.com/public_html/library/XenES/Proxy/ControllerSearch.php(30): Tinhte_XenTag_XenForo_ControllerPublic_Search->actionSearch()
#6 /mysite.com/public_html/library/XenForo/FrontController.php(347): XenES_Proxy_ControllerSearch->actionSearch()
#7 /mysite.com/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /mysite.com/public_html/index.php(13): XenForo_FrontController->run()
#9 {main}

Request State

array(3) {
["url"] => string(42) "https://mysite.com/search/search"
["_GET"] => array(0) {
}
["_POST"] => array(4) {
["keywords"] => string(8) "mysearch"
["users"] => string(0) ""
["date"] => string(0) ""
["_xfToken"] => string(8) "********"
}
}
 
Have you copied the scoring script to the correct directory? If so, you will see a note in ES indicating that it was compiled.
 
Back
Top Bottom