This appears to be caused by the snowball analyzer which is used on the
"tags" field. To reproduce the odd behavior:
curl -XDELETE "http://localhost:9200/haystack";
curl -XPOST "http://localhost:9200/haystack/"; -d '
{
"settings":{
"index":{}
}
}'
curl -XPOST "http://localhost:9200/
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"))