Compare fields' value in es query dsl

ES: v7.6

About es query dsl.

When I use script, it doesn't work:

script: {
  "source": "doc[a.aa].value == doc[b.bb.bbb]"
}

It's the wrong way, so what should I do?

Thanks?

script: {
  "source": "doc[a.aa].value == doc[b.bb.bbb].value"
}

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