If you already have a filter, you can simply wrap it into a filtered queryhttp://www.elasticsearch.org/guide/reference/query-dsl/filtered-query.html.
If your query still doesn't work, post it here and we will try to fix it.
On Thursday, July 26, 2012 5:37:08 AM UTC-4, T Vinod Gupta wrote:
i want to construct a query wherein either a field should be absent in the
document or if present, then it should not contain any of the given words.
can someone provide an example of doing so?
i know how to do a filter with similar requirements but getting confused