How can I query an array for exact matches? (mapping is not_analyzed).

e.g. I got a document with the tag [foo] and another one with the tags 
[foo, bar]. Only the document with the [foo] tag should return. Right now 
I'm using a script filter to limit the array 
length: https://gist.github.com/justincase/b2efde40e19676df29c7. There must 
be an easier (and less compute expensive) way though?


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c69fc6bc-aba8-42ec-8000-b1f79bea18c2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to