I have two fields field_1 and field_2. I have a to find exact match for my query in either field_1 or field_2. multi_match is not giving me exact matches. And constant_score does not support multi_match.
Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.
This is the mapping of my fields. Say my search term is "foo", I want results in which either "field_1" is "foo" or "field_2" is "foo". Also I want exact matches
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.