Hello All,
I'm looking to do a facet filter on documents that look like
thishttp://pastebin.com/Dgy7YwKWone.
I have an array named "results" and within that array I have elements with
field "name" and field "failed". I'd like to do a facet search over the
"name" field across all elements of the "results" array in in all documents.
Furthermore, I'd like to be able to filter out all elements where "failed"
(the sibling of "name") is 0. How would I do this?
I've tried looking at the Term
Scriptshttp://www.elasticsearch.org/guide/reference/api/search/facets/terms-facet.htmldocumentation
but I don't think I am able to access the sibling from the
script.
Does _scope allow this to happen? Could I somehow scope the facets down to
an individual element in "results"?
Thanks for your help,
Owen Coutts
--
Owen Coutts
owen@owencoutts.com