Hi,
Please consider the following case.
I have an index named : FRAUD
I would like to display all the documents that field A is equal to field B
fields A and B are of string data type.
The most efficient way to do this is at ingestion time with an ingest node processor.
If this data is already indexed, you'll want to create a scripted field. The scripted field would output true or false, and then you'd query on that field.
e.g. script that creates a fieldd = (a == b) and a query d: true
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.