How to make a nested term query

Hey Elasticsearch community. I have a nested query as such

{
    "size": 20,
    "_source": ["tags"],
	"sort": [
		{ "@timestamp": { "order": "desc" } }
	],
    "query": {
        "nested" : {
            "path" : "tags",
                "query" : {
                    "bool" : {
                        "must" : [
                          { "match_phrase" : {"tags.name" : "thriller"} }
                        ]    
                }
            }
        }
    }
}

How do I transform this query into a term query?

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