You can have bool queries into another bool must or should, etc...
So you can have a big bool with 2 should, with minumum should match = 1.
1rst bool will contains your current bool query, the 2d should will contain the exist on the y field.
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.