First thing to do is to reproduce the problem with just a script like I did. Then try to understand what is wrong.
Here, I'm almost sure (but you did not share your mapping), that you are searching on a text field with default analyzer, using a term query with uppercase terms like DEBUG and INFO. Which is not going to work.
Thank you. That's not really I've wanted.
Firstly, I want to put documents only with one level. For, example:doc{1} will have only "INFO" and doc{2} will have only "DEBUG".
But in request I want to send Set(Java collection) of documents. For example: give me all documents where level is "INFO" or "DEBUG". And in result I want to receive doc{1} and doc{2}.
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.