Filter/Term Query on 2 different fields

  1. I have a query that looks for specific Terms in multiple fields.

Eg. for 2 different fields below

1st level filter --> source = XYZ
2nd level filter --> name = John

The query needs to find all documents that have source = xyz and then
source = John.

  1. I also need to make a variation of the query that looks for below

1st level filter --> Source not equal to XYZ, ABC
2nd filter --> name = John


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
To view this discussion on the web visit
For more options, visit