# Search multiple values against multiple fields

**URL:** <https://discuss.elastic.co/t/search-multiple-values-against-multiple-fields/137980>\
**Category:** Elasticsearch\
**Created:** [June 29, 2018, 1:58pm UTC](https://discuss.elastic.co/t/search-multiple-values-against-multiple-fields/137980 "2018-06-29T13:58:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![reswob](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/reswob/32/38015_2.png) [@reswob](https://discuss.elastic.co/u/reswob)\
**Post date:** [June 29, 2018, 2:16pm UTC](https://discuss.elastic.co/t/search-multiple-values-against-multiple-fields/137980/2 "2018-06-29T14:16:16Z")

</div>

Hmm, after some more reading and googling, it looks like the following will work:

```
GET index/_search
{
    "query" : {
        "bool" : {
            "should" : [
                {"terms" : { "user" : ["john", "jack", "bill"]}},
                {"terms" : { "fullname" : ["john", "jack", "bill"]}},
                {"terms" : { "firstname" : ["john", "jack", "bill"]}}
            ]
        }
    }
}
```

---

_[View the full topic](https://discuss.elastic.co/t/search-multiple-values-against-multiple-fields/137980)._
