# Multiple filter on alias

**URL:** <https://discuss.elastic.co/t/multiple-filter-on-alias/193284>\
**Category:** Elasticsearch\
**Created:** [August 1, 2019, 9:29am UTC](https://discuss.elastic.co/t/multiple-filter-on-alias/193284 "2019-08-01T09:29:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![parosio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/parosio/32/27367_2.png) [@parosio](https://discuss.elastic.co/u/parosio)\
**Post date:** [August 1, 2019, 9:29am UTC](https://discuss.elastic.co/t/multiple-filter-on-alias/193284/1 "2019-08-01T09:29:03Z")

</div>

Hello,

I wish it could be possible to define an alias with multiple filters, like in:

```
POST /_aliases
{
  "actions": [
    {
      "add": {
        "index": "av-asset",
        "alias": "av-server-recent",
        "filter": [
        {"term": {"Av_Target_Type": "Server"}},
        {"range": {"@timestamp": {
              "gte": "now/d-7d"
            }}}
        ]
      }
    }
  ]
}

```

which fails for:

```
"root_cause": [{
  "type": "x_content_parse_exception",
  "reason": "[7:19] [add] filter doesn't support values of type: START_ARRAY"
}],

```

Any other way to accomplish this kind of result?

---

<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:** [August 29, 2019, 9:29am UTC](https://discuss.elastic.co/t/multiple-filter-on-alias/193284/2 "2019-08-29T09:29:06Z")

</div>

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