Query string boolean operators vs. stop words


I'm using a query string query with boolean operators as stated in the docs, like this: ((quick AND fox) OR (brown AND fox) OR fox) AND NOT news

This works all right, but I noticed that stop words are not ignored in these type of queries. So, if my query is (the quick fox), then the stop word the is correctly ignored by Elasticsearch. However if the query contains boolean operators, like (the AND quick AND fox), then the stop word the is NOT ignored by Elasticsearch. How can I keep the functionalities of these boolean operators, while still ignoring stop words in the query? (Removing stop words on the client side is not an option, as they are handled by Elasticsearch.)

Thank you in advance!

Anyone has any ideas?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.