Mouth
Well-known member
xfES v1.1.1
ElasticSearch v1.3.2
Have started getting the following error for all searches ...
ElasticSearch options ..
Search Options ...
I've just finished a full rebuild, but this didn't resolve it ...
Have also restarted ElasticSearch to check it is running properly ...
ElasticSearch v1.3.2
Have started getting the following error for all searches ...
Error Info
XenForo_Exception: Elasticsearch error: SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[yrrGWR-iT4eRlgIUwef1-g][netrider][0]: SearchParseException[[netrider][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"function_score":{"boost_mode":"replace","query":{"query_string":{"query":"vfr800","fields":["title^3","message"],"default_operator":"and"}},"script_score":{"params":{"now":1411168431,"halflife":31536000},"lang":"groovy","script":"_score \/ pow(2.0F, min(10.0F * halflife, abs(now - doc['date'].value)) \/ halflife)"}}},"sort":[{"_score":"desc"},{"date":"desc"}],"size":250,"fields":["discussion_id","user","date"]}]]]; nested: QueryParsingException[[netrider] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[yrrGWR-iT4eRlgIUwef1-g][netrider][2]: SearchParseException[[netrider][2]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"function_score":{"boost_mode":"replace","query":{"query_string":{"query":"vfr800","fields":["title^3","message"],"default_operator":"and"}},"script_score":{"params":{"now":1411168431,"halflife":31536000},"lang":"groovy","script":"_score \/ pow(2.0F, min(10.0F * halflife, abs(now - doc['date'].value)) \/ halflife)"}}},"sort":[{"_score":"desc"},{"date":"desc"}],"size":250,"fields":["discussion_id","user","date"]}]]]; nested: QueryParsingException[[netrider] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[yrrGWR-iT4eRlgIUwef1-g][netrider][1]: SearchParseException[[netrider][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"function_score":{"boost_mode":"replace","query":{"query_string":{"query":"vfr800","fields":["title^3","message"],"default_operator":"and"}},"script_score":{"params":{"now":1411168431,"halflife":31536000},"lang":"groovy","script":"_score \/ pow(2.0F, min(10.0F * halflife, abs(now - doc['date'].value)) \/ halflife)"}}},"sort":[{"_score":"desc"},{"date":"desc"}],"size":250,"fields":["discussion_id","user","date"]}]]]; nested: QueryParsingException[[netrider] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[yrrGWR-iT4eRlgIUwef1-g][netrider][4]: SearchParseException[[netrider][4]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"function_score":{"boost_mode":"replace","query":{"query_string":{"query":"vfr800","fields":["title^3","message"],"default_operator":"and"}},"script_score":{"params":{"now":1411168431,"halflife":31536000},"lang":"groovy","script":"_score \/ pow(2.0F, min(10.0F * halflife, abs(now - doc['date'].value)) \/ halflife)"}}},"sort":[{"_score":"desc"},{"date":"desc"}],"size":250,"fields":["discussion_id","user","date"]}]]]; nested: QueryParsingException[[netrider] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[yrrGWR-iT4eRlgIUwef1-g][netrider][3]: SearchParseException[[netrider][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"function_score":{"boost_mode":"replace","query":{"query_string":{"query":"vfr800","fields":["title^3","message"],"default_operator":"and"}},"script_score":{"params":{"now":1411168431,"halflife":31536000},"lang":"groovy","script":"_score \/ pow(2.0F, min(10.0F * halflife, abs(now - doc['date'].value)) \/ halflife)"}}},"sort":[{"_score":"desc"},{"date":"desc"}],"size":250,"fields":["discussion_id","user","date"]}]]]; nested: QueryParsingException[[netrider] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }] - library/XenES/Search/SourceHandler/ElasticSearch.php:845
Stack Trace
#0 library/XenES/Search/SourceHandler/ElasticSearch.php(305): XenES_Search_SourceHandler_ElasticSearch->_logSearchResponseError(Object(stdClass), true)
#1 library/XenForo/Search/SourceHandler/Abstract.php(115): XenES_Search_SourceHandler_ElasticSearch->executeSearch('vfr800', false, Array, Array, false, '250')
#2 library/XenForo/Search/Searcher.php(79): XenForo_Search_SourceHandler_Abstract->searchGeneral('vfr800', Array, 'relevance', '250')
#3 library/XenForo/ControllerPublic/Search.php(235): XenForo_Search_Searcher->searchGeneral('vfr800', Array, 'relevance')
#4 library/Andy/SearchLog/ControllerPublic/Search.php(8): XenForo_ControllerPublic_Search->actionSearch()
#5 library/XenES/Proxy/ControllerSearch.php(30): Andy_SearchLog_ControllerPublic_Search->actionSearch()
#6 library/XenForo/FrontController.php(347): XenES_Proxy_ControllerSearch->actionSearch()
#7 library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
["url"] => string(36) "http://netrider.net.au/search/search"
["_GET"] => array(1) {
["/search/search"] => string(0) ""
}
["_POST"] => array(4) {
["keywords"] => string(6) "vfr800"
["users"] => string(0) ""
["date"] => string(0) ""
["_xfToken"] => string(8) "********"
}
}
ElasticSearch options ..
Search Options ...
I've just finished a full rebuild, but this didn't resolve it ...
Have also restarted ElasticSearch to check it is running properly ...
Code:
curl http://127.0.0.1:9200
{
"status" : 200,
"name" : "Master Mold",
"version" : {
"number" : "1.3.2",
"build_hash" : "dee175dbe2f254f3f26992f5d7591939aaefd12f",
"build_timestamp" : "2014-08-13T14:29:30Z",
"build_snapshot" : false,
"lucene_version" : "4.9"
},
"tagline" : "You Know, for Search"
}