-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[MHxs9PqFTq6ctF_g15Tneg][guba][2]: #8084
Comments
Hi @linhaobuaa It looks like you have two fields with the same name Please reopen if the issue is not as I have described it. |
Hi, Am new to elastic search and getting same error while creating a complex filter query. It would be great if somebody could look into this and help.
Now my query url is : /devices/app_89/_search?pretty=true&search_type=count Basically am trying to get document counts based on all the platforms found, including filters like - ( TOKEN!=null AND DISABLED=0 AND PUSH_DISABLED=0 AND APP_ID="<any_value>" AND (SANDBOX=<any_value> OR (PLATFORM_ID=2 AND SANDBOX=0)) ) Without including all the query filters, I am able to get the document counts correctly by this query - Thanks in advance ! |
Got that fixed yesterday, by just replacing null with this - '', in must_not filter. Like this - |
For me this issue was caused by not having enough disk space. |
@axper I also faced the same problem and it was caused by not having enough disk space. I have free'd enough disk space, but don't know how to change the health status from 'red' to 'green'. Do you have any idea? |
@rohitkothari You remember what was the problem ? I am stuck on here right now too ( using aws ) |
"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[ckJNQA6mS9yC1SnQppBxXw][logstash-2018.04.17][0]: SearchParseException[[logstash-2018.04.17][0]: from[-1],size[0]: Parse Failure [Failed to parse source [{"size":0,"query":{"bool":{"filter":[{"range":{"@timestamp":{"gte":"1525757645955","lte":"1525779245955","format":"epoch_millis"}}},{"query_string":{"analyze_wildcard":true,"query":""}}]}},"aggs":{"2":{"date_histogram":{"interval":"30s","field":"@timestamp","min_doc_count":0,"extended_bounds":{"min":"1525757645955","max":"1525779245955"},"format":"epoch_millis"},"aggs":{}}}}]]]; nested: QueryParsingException[[logstash-2018.04.17] bool query does not support [filter]]; }{[ckJNQA6mS9yC1SnQppBxXw][logstash-2018.04.17][1]: SearchParseException[[logstash-2018.04.17][1]: from[-1],size[0]: Parse Failure [Failed to parse source [{"size":0,"query":{"bool":{"filter":[{"range":{"@timestamp":{"gte":"1525757645955","lte":"1525779245955","format":"epoch_millis"}}},{"query_string":{"analyze_wildcard":true,"query":""}}]}},"aggs":{"2":{"date_histogram":{"interval":"30s","field":"@timestamp","min_doc_count":0,"extended_bounds":{"min":"1525757645955","max":"1525779245955"},"format":"epoch_millis"},"aggs":{}}}}]]]; nested: QueryParsingException[[logstash-2018.04.17] bool query does not support [filter]]; }{[ckJNQA6mS9yC1SnQppBxXw][logstash-2018.04.17][2]: SearchParseException[[logstash-2018.04.17][2]: from[-1],size[0]: Parse Failure [Failed to parse source [{"size":0,"query":{"bool":{"filter":[{"range":{"@timestamp":{"gte":"1525757645955","lte":"1525779245955","format":"epoch_millis"}}},{"query_string":{"analyze_wildcard":true,"query":""}}]}},"aggs":{"2":{"date_histogram":{"interval":"30s","field":"@timestamp","min_doc_count":0,"extended_bounds":{"min":"1525757645955","max":"1525779245955"},"format":"epoch_millis"},"aggs":{}}}}]]]; nested: QueryParsingException[[logstash-2018.04.17] bool query does not support [filter]]; }{[ckJNQA6mS9yC1SnQppBxXw][logstash-2018.04.17][3]: SearchParseException[[logstash-2018.04.17][3]: from[-1],size[0]: Parse Failure [Failed to parse source [{"size":0,"query":{"bool":{"filter":[{"range":{"@timestamp":{"gte":"1525757645955","lte":"1525779245955","format":"epoch_millis"}}},{"query_string":{"analyze_wildcard":true,"query":""}}]}},"aggs":{"2":{"date_histogram":{"interval":"30s","field":"@timestamp","min_doc_count":0,"extended_bounds":{"min":"1525757645955","max":"1525779245955"},"format":"epoch_millis"},"aggs":{}}}}]]]; nested: QueryParsingException[[logstash-2018.04.17] bool query does not support [filter]]; }{[ckJNQA6mS9yC1SnQppBxXw][logstash-2018.04.17][4]: SearchParseException[[logstash-2018.04.17][4]: from[-1],size[0]: Parse Failure [Failed to parse source [{"size":0,"query":{"bool":{"filter":[{"range":{"@timestamp":{"gte":"1525757645955","lte":"1525779245955","format":"epoch_millis"}}},{"query_string":{"analyze_wildcard":true,"query":"*"}}]}},"aggs":{"2":{"date_histogram":{"interval":"30s","field":"@timestamp","min_doc_count":0,"extended_bounds":{"min":"1525757645955","max":"1525779245955 i am getting this error on grafana while viewing dashboard . can u please help me |
1、GET guba/_search
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 2,
"failed": 0
},
"hits": {
"total": 135592,
"max_score": 1,
"hits": [
{
"_index": "guba",
"_type": "post",
"_id": "125570200",
"_score": 1,
"_source": {
"stockholder": false,
"stock_id": "600010",
"user_url": "http://iguba.eastmoney.com/9926113891298328",
"post_id": 125570200,
"url": "http://guba.eastmoney.com/news,600010,125570200,d.html",
"lastReplyTime": null,
"content": "买入 738381 买入价格99.00 买入股数 2",
"user_name": "赚够一千万123",
"title": "应",
"em_info": null,
"_id": 125570200,
"replies": 0,
"clicks": 342,
"first_in": 1413097216.340654,
"user_id": 9926113891298328,
"releaseTime": "2014-10-12 11:14:00",
"last_modify": 1413097216.340654,
"stock_name": "包钢股份"
}
}
]
}
2、
GET guba/_search
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {}
}
},
"aggs": {
"range": {
"date_range": {
"field": "releaseTime",
"format": "yyyy-MM-dd H:M:s",
"ranges": [
{
"to": "2014-10-14 10:30:00"
},
{
"from": "2014-10-14 10:00:00"
}
]
}
}
}
}
{
"error": "SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[MHxs9PqFTq6ctF_g15Tneg][guba][2]: ClassCastException[org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData cannot be cast to org.elasticsearch.index.fielddata.IndexNumericFieldData]}{[MHxs9PqFTq6ctF_g15Tneg][guba][0]: ClassCastException[org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData cannot be cast to org.elasticsearch.index.fielddata.IndexNumericFieldData]}]",
"status": 500
}
The text was updated successfully, but these errors were encountered: