# Alias filter and duplicate attributes in different mappings

**URL:** <https://discuss.elastic.co/t/alias-filter-and-duplicate-attributes-in-different-mappings/34794>\
**Category:** Elasticsearch\
**Created:** [November 17, 2015, 11:32am UTC](https://discuss.elastic.co/t/alias-filter-and-duplicate-attributes-in-different-mappings/34794 "2015-11-17T11:32:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emolla](https://avatars.discourse-cdn.com/v4/letter/e/7ea924/32.png) [@emolla](https://discuss.elastic.co/u/emolla)\
**Post date:** [November 17, 2015, 11:32am UTC](https://discuss.elastic.co/t/alias-filter-and-duplicate-attributes-in-different-mappings/34794/1 "2015-11-17T11:32:24Z")

</div>

Hi,

In version 1.7.3 of Elasticsearch, he had two mappings with three equal fields (Field1, Field2, Field3), and those areas were the default alias filtering.

```
PUT / INDEX / _alias / ALIAS
{
 "Filter": {
               "And": {
                  "Filters": [
                     {
                        "Term": {
                           "Field1": 2
                        }
                     },
                     {
                        "Term": {
                           "Field2": 1
                        }
                     },
                     {
                        "Term": {
                           "Field3": 1
                        }
                     }
                  ]
               }
}
}

```

When you upgrade to version 2.0 of Elasticsearch, and I can not be duplicated on different mapping attributes, so no longer the same name, and I can not put the filter level alias.

Do I have to have two types of aliases for each filter you want to apply? Or I can have a condition "or" in the filter level alias?

Thank you very much for your help, greetings.

---

<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 5, 2017, 11:37pm UTC](https://discuss.elastic.co/t/alias-filter-and-duplicate-attributes-in-different-mappings/34794/2 "2017-07-05T23:37:59Z")

</div>


