Skip to content

Instantly share code, notes, and snippets.

@mrvisser
Created October 23, 2012 20:49
Show Gist options
  • Save mrvisser/3941458 to your computer and use it in GitHub Desktop.
Save mrvisser/3941458 to your computer and use it in GitHub Desktop.
Query DSL
{
"filtered": {
"query": {
"queryString": {
"default_field": "general",
"query": "hazardous"
}
},
"filter": {
"and": [
{
"term": {
"_type": "group"
}
}
]
}
}
}
Error:
{"error":"SearchPhaseExecutionException[Failed to execute phase [query_fetch], total failure; shardFailures {[rAu7k2iMT-SOmsGJ4KkZQA][oae][0]: SearchParseException[[oae][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"filtered\":{\"query\":{\"queryString\":{\"default_field\":\"general\",\"query\":\"hazardous\"}},\"filter\":{\"and\":[{\"term\":{\"_type\":\"group\"}}]}}}]]]; nested: SearchParseException[[oae][0]: from[-1],size[-1]: Parse Failure [No parser for element [filtered]]]; }]","status":500}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment