Re: Boolean operators entered in lower case returning unexpected results
Its not because and is a boolean operation, its because its a stop word, and its removed during the analysis process. So the text: "dog and cat" will be broken down into terms: "dog", "cat" by the standard analyzed. You can build your own analyzed that does not remove stopwords.
We are facing an issue when query string consists of Boolean operators (AND,
OR and NOT) in lower case.For e. g. when following query is fired on ES
server we are getting back the results even when there is no such data
First, don't send the mail on another thread, it has nothing to do with this thread. You can specify an analyzer when you search based on the query type that you use. For example, query_string accepts an analyzer option.
You can specify a default analyzer in your index config, which will be used for all (string) fields by default. you, you can specify an analyzer associated with a field in the mapping.