Hi,
Can I compare two fields in a doc and show all results?
eg;
show all docs where field_1 == field_2
Any ideas?
Hi,
Can I compare two fields in a doc and show all results?
eg;
show all docs where field_1 == field_2
Any ideas?
you mean the value of two fields? if so, you can use filter with a script
doc[field_1].value == doc[field_2].value
hth
jason
© 2020. All Rights Reserved - Elasticsearch
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.