{
"error": "[400] {"error":{"root_cause":[{"type":"parsing_exception","reason":"no [query] registered for [filtered]","line":1,"col":35}],"type":"parsing_exception","reason":"no [query] registered for [filtered]","line":1,"col":35},"status":400}",
"status": "Fail"
}
I am new with ruby on rails, my ruby version is 2.3.1 and rails version is 4.2.4 as I am deploying my code in local system (development mode), everything work properly except elasticsearch.
I have install and try to mapping version of elasticserach 2.4.6, 5.0.0, 5.0.2 and also 5.6.3 but still I am getting above error in (postman) when I am passing my below query.
def build_query
ret = {
size:10000,
query: {
filtered: {
query: {
bool: { must: [] }
},
filter: { bool: { must: [] } },
}
},
post_filter: { bool: { must: [] } },
sort: {
FieldLong: {
order: "desc",
missing: "_last",
ignore_unmapped: true
}
}
}