Created
October 23, 2012 20:49
-
-
Save mrvisser/3941458 to your computer and use it in GitHub Desktop.
Query DSL
This file contains 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
{ | |
"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