You will only see the difference when you have more complex queries that
combine MUST and SHOULD together. In your example you could have just
change MUST to SHOULD (i.e. used TERMS). By the definition, SHOULD is like
an OR and without a MUST clause it implies 'at least' one should match.
R
On Friday, January 10, 2014 11:17:57 AM UTC-5, Nick Hoffman wrote:
Hi guys. These 2 queries produce the same results via different
approaches. Is there any reason why one should be used over another?
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.