the thing is I want to return results where both "firstname" and "lastname"
exist in field "name" or both "firstname" and "lastname" exist in field
email but it returns results where either match, im not sure if it makes a
difference but name and email are arrays of strings
the thing is I want to return results where both "firstname" and
"lastname" exist in field "name" or both "firstname" and "lastname"
exist in field email but it returns results where either match, im not
sure if it makes a difference but name and email are arrays of strings
You can't use multi_match for this. Instead you can wrap two match
clauses in a bool clause:
On Thursday, January 17, 2013 11:51:34 AM UTC+2, Clinton Gormley wrote:
the thing is I want to return results where both "firstname" and
"lastname" exist in field "name" or both "firstname" and "lastname"
exist in field email but it returns results where either match, im not
sure if it makes a difference but name and email are arrays of strings
You can't use multi_match for this. Instead you can wrap two match
clauses in a bool clause:
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.