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

Thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9f2a4d14-42d7-45a4-af89-8a37a7e690ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.