Did you try a script like doc['incoming_json_dict.customer.correspondenceLanguage'].value === doc['result_pack.detectedLanguage'].value? It should work with these settings:
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.