You can potentially do that by using instead a bool query with should clauses.
Use then term queries (instead of terms query) and use named queries feature.
The result will come back with queries which matched. Just "negate" that result in your application.
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.