Alias filter and duplicate attributes in different mappings


(Kike) #1

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.


(system) #2