"type": "parsing_exception", "reason": "no [query] registered for [filtered]"

Elasticsearch version: 5.5.1
Kibana version: 5.5.1
OS: Suse linux
When I use the command as follow with Kibana,

GET /my_store/products/_search
{
"query" : {
"filtered" : {
"filter" : {
"bool" : {
"should" : [
{ "term" : {"productID" : "KDKE-B-9947-#kL5"}},
{ "bool" : {
"must" : [
{ "term" : {"productID" : "JODL-X-1937-#pV7"}},
{ "term" : {"price" : 30}}
]
}}
]
}
}
}
}
}

It throws a such error:

{
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "no [query] registered for [filtered]",
"line": 3,
"col": 20
}
],
"type": "parsing_exception",
"reason": "no [query] registered for [filtered]",
"line": 3,
"col": 20
},
"status": 400
}

Could anyone can give me any advice?

Hi Alice,

It looks like the Filtered query is deprecated. Can you try this?
https://www.elastic.co/guide/en/elasticsearch/reference/5.5/query-dsl-filtered-query.html

Regards,
Lee

1 Like

Ok, thanks very much, dear Lee.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.