If the condition is two fields equal how to write?

Excuse me, I am a novice, so I would like to ask about the query ES, if the condition is two fields equal how to write?

You can't do this directly in the query - the easiest way is to create a runtime field (Manage index pattern data fields | Kibana Guide [7.15] | Elastic) which does the comparison and emits true if they are identical and false otherwise, then filter on this new field.

1 Like

I see. Thank you for your help

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