Why Termslookup does not work on aliases?

  Kiến thức lập trình
{
  "query": {
    "terms": {
        "name" : {
            "index" : "people",
            "id" : "2",
            "path" : "name"
        }
    }
  }
}

When “people” is associated with multiple indices I get this error:

alias [people] has more than one index associated with it [people1,
people-archive], can’t execute a single index op

So if I want to search in multiple indices it is not possible?
Or should I specify an array of indices somehow instead of an alias?

LEAVE A COMMENT