# Terms vs should

**URL:** https://discuss.elastic.co/t/terms-vs-should/84007
**Category:** Elasticsearch
**Created:** [April 28, 2017, 11:45am UTC](https://discuss.elastic.co/t/terms-vs-should/84007 "2017-04-28T11:45:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gsouf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gsouf/32/17405_2.png) [@gsouf](https://discuss.elastic.co/u/gsouf)
#### Post date: [April 28, 2017, 11:45am UTC](https://discuss.elastic.co/t/terms-vs-should/84007/1 "2017-04-28T11:45:58Z")

</div>

Hi,

I wonder if there is a difference between using multiple value in a "terms" filter and using multiple "term" queries in a should filter.

With example, is there a difference between this query:

```
{
    "query": {
        "constant_score" : {
            "filter" : {
                "terms" : { "user" : ["kimchy", "elasticsearch"]}
            }
        }
    }
}

```

and this one:

```
{
    "query": {
        "constant_score" : {
            "filter" : {
                "bool": {
                    "should" : [
                        { "term" : { "user" : "kimchy" } },
                        { "term" : { "user" : "elasticsearch" } }
                    ]
                }
            }
        }
    }
}

```

Thanks

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 26, 2017, 11:56am UTC](https://discuss.elastic.co/t/terms-vs-should/84007/2 "2017-05-26T11:56:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
