When I run the query (tags:("a")) in elasticsearch, I get 0 results. My 
query URL looks like:

http://127.0.0.1:9200/haystack/_search?q=(tags%3A(%22a%22))

That is to be expected, since no objects have a tag set to "a".

Now when I change the condition, and add an AND, (org:("1") AND tags:("a"))
, *I get 3 results back*! The query URL looks like:

http://127.0.0.1:9200/haystack/_search?q=(org%3A(%221%22)%20AND%20tags%3A(%22a%22))

Getting *more* results back does not make any sense to me. I would expect 
that kind of behavior with the OR operator, but AND? What is going on?

(This is a cross post from 
stackoverflow<http://stackoverflow.com/questions/23568699/odd-behavior-with-and-condition-in-elasticsearch>
)

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/2abd1b1b-edc0-4714-846f-8d8a82a39240%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to