# Filter terms multiple integer filters?

**URL:** <https://discuss.elastic.co/t/filter-terms-multiple-integer-filters/20612>\
**Category:** Elasticsearch\
**Created:** [November 6, 2014, 3:42pm UTC](https://discuss.elastic.co/t/filter-terms-multiple-integer-filters/20612 "2014-11-06T15:42:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibasaw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ibasaw/32/1121_2.png) [@ibasaw](https://discuss.elastic.co/u/ibasaw)\
**Post date:** [November 6, 2014, 3:42pm UTC](https://discuss.elastic.co/t/filter-terms-multiple-integer-filters/20612/1 "2014-11-06T15:42:47Z")

</div>

Hi,

i can do multiple filter terms on a query like this

```
  "filter": {
    "terms": {
      "categories": [
        [
          "boats",
          "cars"
        ]
      ]
    }
  }

```

it works !

but if i do the same with integer like year, it doesn't work, got a parse  
error

SearchPhaseExecutionException[Failed to execute phase [query], all shards  
failed;

```
  "filter": {
    "terms": {
      "anneeGuide": [
        [
          "2012",
          "2014"
        ]
      ]
    }
  }

```

how to do this ?

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/986f395f-9f9c-4c2f-82be-6b699dd50d9c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/986f395f-9f9c-4c2f-82be-6b699dd50d9c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:51am UTC](https://discuss.elastic.co/t/filter-terms-multiple-integer-filters/20612/2 "2017-07-06T00:51:44Z")

</div>

Closed on July 6, 2017, 12:51am UTC


