suppose we have a type Recipe with field ingredients that stores a JSON
string array. a couple of Recipe docs' ingredients values may therefore be:
- [ "apples", "oranges]
- [ "apples" ]
what query would return docs whose ingredients contain solely "apples"
(thus only return #2 from the above set)? I thought query string / field
queryhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntaxwould work but using:
ingredients:"apples" also returns #1.
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 firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7ad78322-803f-4f61-8428-82046dfd8bfb%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.