Use terms_set with nested array

Is there a way to use terms_set with nested array

{
    "from": 0,
    "size": 10,
    "query": {
        "bool": {
            "filter": [
                {
                    "nested": {
                        "path": "parts.sites",
                        "query": {
                            "terms_set": {
                                "parts.sites.country": {
                                    "terms": [
                                        "Philippines",
                                        "China",
                                        "South Korea"
                                    ],
                                    "minimum_should_match_script": {
                                        "source": "params.num_terms"
                                    }
                                }
                            }
                        }
                    }
                }
            ]
        }
    },
    "_source": [
        "parts.sites.country"
    ]
}

parts.sites is a nested Prop

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