Have to support multiple child types in has_childA?

mapping:

"rhmjoin": {
	"type": "join",
	"relations": {
		"dagrxx": ["gxysfjl", "tnbsfjl"]
	}
}   

query:

{
	"query": {
		"has_child": {
			"type": ["gxysfjl", "tnbsfjl"],
			"query": {
				"script": {
					"script": {
						"lang": "painless",
						"inline": "doc['gxysfjl.sfrq'].value  == doc['tnbsfjl.sfrq'].value"
					}
				}
			}
		}
	}
}

It's not work !-。-, Any other solutions? many thanks in advance!

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