Filtered Query in 5.x

I'm using the following query in 2.4.4 version

{
"size":100,
"query":
{
"filtered":
{
"query":
{
"query_string":{"query":"1"}
},
"filter":
{
"term":
{
"show_id":1
}
}
}
},
"sort":
["_score",
{
"version.episode.air":{"order":"desc"}
},
{
"tape_date":{"order":"desc"}
}
]
}

Can anyone help me with the new syntax in elasticsearch 5.x

Use a bool query with a filter clause.

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