I am getting this error when I try bool query. Did I miss something?
curl -XGET 'http://dslg1:9200/documents/object/_search' -d '{
"bool" : {
"must" : {
"term" : { "name" : "EAAgfyaxpzdfcfv9Qexq1WtGvA==" }
},
"should" : [
{
"term" : { "age" : "20" }
}
],
"minimum_number_should_match" : 1,
"boost" : 1.0
}
}'
{"error":"SearchPhaseExecutionException[Failed to execute phase [query],
total failure; shardFailures {[mRAEhEG6QHKNKPEeS0DAWg][documents][1]:
SearchParseException[[documents][1]: from[-1],size[-1]: Parse Failure
[Failed to parse source [{\n "bool" : {\n "must" :
{\n "term" : { "name" : "EAAgfyaxpzdfcfv9Qexq1WtGvA=="
}\n },\n "should" : [\n {\n
"term" : { "age" : "20" }\n }\n ],\n
"minimum_number_should_match" : 1,\n "boost" : 1.0\n }\n}]]];
nested: SearchParseException[[documents][1]: from[-1],size[-1]: Parse
Failure [No parser for element [bool]]];
}{[mkOicZNhSga8omWsigTWuw][documents][0]:
RemoteTransportException[[X-Ray][inet[/172.18.62.203:9300]][search/phase/query]];
nested: SearchParseException[[documents][0]: from[-1],size[-1]: Parse
Failure [Failed to parse source [{\n "bool" : {\n "must" :
{\n "term" : { "name" : "EAAgfyaxpzdfcfv9Qexq1WtGvA=="
}\n },\n "should" : [\n {\n
"term" : { "age" : "20" }\n }\n ],\n
"minimum_number_should_match" : 1,\n "boost" : 1.0\n }\n}]]];
nested: SearchParseException[[documents][0]: from[-1],size[-1]: Parse
Failure [No parser for element [bool]]];
}{[mRAEhEG6QHKNKPEeS0DAWg][documents][2]:
SearchParseException[[documents][2]: from[-1],size[-1]: Parse Failure
[Failed to parse source [{\n "bool" : {\n "must" :
{\n "term" : { "name" : "EAAgfyaxpzdfcfv9Qexq1WtGvA=="
}\n },\n "should" : [\n {\n
"term" : { "age" : "20" }\n }\n ],\n
"minimum_number_should_match" : 1,\n "boost" : 1.0\n }\n}]]];
nested: SearchParseException[[documents][2]: from[-1],size[-1]: Parse
Failure [No parser for element [bool]]];
}{[mkOicZNhSga8omWsigTWuw][documents][4]:
RemoteTransportException[[X-Ray][inet[/172.18.62.203:9300]][search/phase/query]];
nested: SearchParseException[[documents][4]: from[-1],size[-1]: Parse
Failure [Failed to parse source [{\n "bool" : {\n "must" :
{\n "term" : { "name" : "EAAgfyaxpzdfcfv9Qexq1WtGvA=="
}\n },\n "should" : [\n {\n
"term" : { "age" : "20" }\n }\n ],\n
"minimum_number_should_match" : 1,\n "boost" : 1.0\n }\n}]]];
nested: SearchParseException[[documents][4]: from[-1],size[-1]: Parse
Failure [No parser for element [bool]]];
}{[mkOicZNhSga8omWsigTWuw][documents][3]:
RemoteTransportException[[X-Ray][inet[/172.18.62.203:9300]][search/phase/query]];
nested: SearchParseException[[documents][3]: from[-1],size[-1]: Parse
Failure [Failed to parse source [{\n "bool" : {\n "must" :
{\n "term" : { "name" : "EAAgfyaxpzdfcfv9Qexq1WtGvA=="
}\n },\n "should" : [\n {\n
"term" : { "age" : "20" }\n }\n ],\n
"minimum_number_should_match" : 1,\n "boost" : 1.0\n }\n}]]];
nested: SearchParseException[[documents][3]: from[-1],size[-1]: Parse
Failure [No parser for element [bool]]]; }]","status":500}[root@dslg2 ~]#