Aliases and percolators

Consider an index idx, with a mapping for a single type docs. Consider
aliases of the format idx-{ACCOUNT-ID}, with a term filter and a routing
value set to the account id, like so:

$ curl http://0.0.0.0:9200/idx/_aliases?pretty=1
{
  "idx" : {
    "aliases" : {
      "idx-1" : {
        "filter" : {
          "term" : {
            "account_id" : 1
          }
        },
        "index_routing" : 1,
        "search_routing" : 1
      },
      ...
    }
  }
}

Questions

  1. When indexing a percolator query, if you do that via an alias, will it
    respect the routing?
# will the alias routing from idx-1 apply to this operation?
curl -XPUT http://0.0.0.0:9200/idx-1/.percolator/1 -d '{query:..., 
account_id:1}'
  1. When percolating an existing document from one of those aliases, will
    the routing and term filter from the alias be used when retrieving/checking
    the matching percolator documents?
# will the alias routing and term filter from idx-1 apply to the 
percolators?
curl http://0.0.0.0:9200/idx-1/docs/123/_percolate

Any insight much appreciated.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/564166cd-dd22-45d3-a51d-f810f5258c58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.