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!