Created
June 10, 2015 16:42
-
-
Save Rosa-Fox/e45fe41083fb7bbe760b to your computer and use it in GitHub Desktop.
Error elastic search
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Elasticsearch::Transport::Transport::Errors::BadRequest at /categories/defend-market-share | |
[400] {"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[iPIrRP8XRjKSCa9MqWJSDw][contagiousfeed_development_feed_articles][0]: SearchParseException[[contagiousfeed_development_feed_articles][0]: from[0],size[10]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":10,\"filter\":{\"and\":[{\"term\":{\"published\":true}},{\"terms\":{\"categories\":[\"defend-market-share\"]}}]},\"query\":{\"function_score\":{\"functions\":[{\"script_score\":{\"script\":\"(0.25/ ((3.16*pow(10,-11)) * abs(DateTime.now().getMillis() - doc['published_at'].date.getMillis()) + 0.05)) + _score\"}}],\"query\":{\"query_string\":{\"query\":\"Defend market share\",\"default_operator\":\"and\"}}}},\"sort\":[{\"published_at\":\"desc\"}],\"aggs\":{\"all_categories\":{\"filter\":{\"and\":[{\"term\":{\"published\":true}}]},\"aggs\":{\"categories\":{\"terms\":{\"field\":\"categories\",\"size\":150,\"all_terms\":false}}}},\"filtered_categories\":{\"filter\":{\"and\":[{\"term\":{\"published\":true}},{\"terms\":{\"categories\":[\"defend-market-share\"]}}]},\"aggs\":{\"categories\":{\"terms\":{\"field\":\"categories\",\"size\":150,\"all_terms\":false}}}}}}]]]; nested: QueryParsingException[[contagiousfeed_development_feed_articles] script_score the script could not be loaded]; nested: ScriptException[scripts of type [inline], operation [search] and lang [groovy] are disabled]; }{[iPIrRP8XRjKSCa9MqWJSDw][contagiousfeed_development_feed_articles][1]: SearchParseException[[contagiousfeed_development_feed_articles][1]: from[0],size[10]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":10,\"filter\":{\"and\":[{\"term\":{\"published\":true}},{\"terms\":{\"categories\":[\"defend-market-share\"]}}]},\"query\":{\"function_score\":{\"functions\":[{\"script_score\":{\"script\":\"(0.25/ ((3.16*pow(10,-11)) * abs(DateTime.now().getMillis() - doc['published_at'].date.getMillis()) + 0.05)) + _score\"}}],\"query\":{\"query_string\":{\"query\":\"Defend market share\",\"default_operator\":\"and\"}}}},\"sort\":[{\"published_at\":\"desc\"}],\"aggs\":{\"all_categories\":{\"filter\":{\"and\":[{\"term\":{\"published\":true}}]},\"aggs\":{\"categories\":{\"terms\":{\"field\":\"categories\",\"size\":150,\"all_terms\":false}}}},\"filtered_categories\":{\"filter\":{\"and\":[{\"term\":{\"published\":true}},{\"terms\":{\"categories\":[\"defend-market-share\"]}}]},\"aggs\":{\"categories\":{\"terms\":{\"field\":\"categories\",\"size\":150,\"all_terms\":false}}}}}}]]]; nested: QueryParsingException[[contagiousfeed_development_feed_articles] script_score the script could not be loaded]; nested: ScriptException[scripts of type [inline], operation [search] and lang [groovy] are disabled]; }{[iPIrRP8XRjKSCa9MqWJSDw][contagiousfeed_development_feed_articles][2]: SearchParseException[[contagiousfeed_development_feed_articles][2]: from[0],size[10]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":10,\"filter\":{\"and\":[{\"term\":{\"published\":true}},{\"terms\":{\"categories\":[\"defend-market-share\"]}}]},\"query\":{\"function_score\":{\"functions\":[{\"script_score\":{\"script\":\"(0.25/ ((3.16*pow(10,-11)) * abs(DateTime.now().getMillis() - doc['published_at'].date.getMillis()) + 0.05)) + _score\"}}],\"query\":{\"query_string\":{\"query\":\"Defend market share\",\"default_operator\":\"and\"}}}},\"sort\":[{\"published_at\":\"desc\"}],\"aggs\":{\"all_categories\":{\"filter\":{\"and\":[{\"term\":{\"published\":true}}]},\"aggs\":{\"categories\":{\"terms\":{\"field\":\"categories\",\"size\":150,\"all_terms\":false}}}},\"filtered_categories\":{\"filter\":{\"and\":[{\"term\":{\"published\":true}},{\"terms\":{\"categories\":[\"defend-market-share\"]}}]},\"aggs\":{\"categories\":{\"terms\":{\"field\":\"categories\",\"size\":150,\"all_terms\":false}}}}}}]]]; nested: QueryParsingException[[contagiousfeed_development_feed_articles] script_score the script could not be loaded]; nested: ScriptException[scripts of type [inline], operation [search] and lang [groovy] are disabled]; }{[iPIrRP8XRjKSCa9MqWJSDw][contagiousfeed_development_feed_articles][3]: SearchParseException[[contagiousfeed_development_feed_articles][3]: from[0],size[10]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":10,\"filter\":{\"and\":[{\"term\":{\"published\":true}},{\"terms\":{\"categories\":[\"defend-market-share\"]}}]},\"query\":{\"function_score\":{\"functions\":[{\"script_score\":{\"script\":\"(0.25/ ((3.16*pow(10,-11)) * abs(DateTime.now().getMillis() - doc['published_at'].date.getMillis()) + 0.05)) + _score\"}}],\"query\":{\"query_string\":{\"query\":\"Defend market share\",\"default_operator\":\"and\"}}}},\"sort\":[{\"published_at\":\"desc\"}],\"aggs\":{\"all_categories\":{\"filter\":{\"and\":[{\"term\":{\"published\":true}}]},\"aggs\":{\"categories\":{\"terms\":{\"field\":\"categories\",\"size\":150,\"all_terms\":false}}}},\"filtered_categories\":{\"filter\":{\"and\":[{\"term\":{\"published\":true}},{\"terms\":{\"categories\":[\"defend-market-share\"]}}]},\"aggs\":{\"categories\":{\"terms\":{\"field\":\"categories\",\"size\":150,\"all_terms\":false}}}}}}]]]; nested: QueryParsingException[[contagiousfeed_development_feed_articles] script_score the script could not be loaded]; nested: ScriptException[scripts of type [inline], operation [search] and lang [groovy] are disabled]; }{[iPIrRP8XRjKSCa9MqWJSDw][contagiousfeed_development_feed_articles][4]: SearchParseException[[contagiousfeed_development_feed_articles][4]: from[0],size[10]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":10,\"filter\":{\"and\":[{\"term\":{\"published\":true}},{\"terms\":{\"categories\":[\"defend-market-share\"]}}]},\"query\":{\"function_score\":{\"functions\":[{\"script_score\":{\"script\":\"(0.25/ ((3.16*pow(10,-11)) * abs(DateTime.now().getMillis() - doc['published_at'].date.getMillis()) + 0.05)) + _score\"}}],\"query\":{\"query_string\":{\"query\":\"Defend market share\",\"default_operator\":\"and\"}}}},\"sort\":[{\"published_at\":\"desc\"}],\"aggs\":{\"all_categories\":{\"filter\":{\"and\":[{\"term\":{\"published\":true}}]},\"aggs\":{\"categories\":{\"terms\":{\"field\":\"categories\",\"size\":150,\"all_terms\":false}}}},\"filtered_categories\":{\"filter\":{\"and\":[{\"term\":{\"published\":true}},{\"terms\":{\"categories\":[\"defend-market-share\"]}}]},\"aggs\":{\"categories\":{\"terms\":{\"field\":\"categories\",\"size\":150,\"all_terms\":false}}}}}}]]]; nested: QueryParsingException[[contagiousfeed_development_feed_articles] script_score the script could not be loaded]; nested: ScriptException[scripts of type [inline], operation [search] and lang [groovy] are disabled]; }]","status":400} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment