{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/14818","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14818/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14818/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14818/events","html_url":"https://github.com/elastic/elasticsearch/issues/14818","id":117505677,"number":14818,"title":"Inconsistent result from _cat/aliases vs. /_aliases for closed indices","user":{"login":"ppf2","id":7216393,"avatar_url":"https://avatars.githubusercontent.com/u/7216393?v=3","gravatar_id":"","url":"https://api.github.com/users/ppf2","html_url":"https://github.com/ppf2","followers_url":"https://api.github.com/users/ppf2/followers","following_url":"https://api.github.com/users/ppf2/following{/other_user}","gists_url":"https://api.github.com/users/ppf2/gists{/gist_id}","starred_url":"https://api.github.com/users/ppf2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppf2/subscriptions","organizations_url":"https://api.github.com/users/ppf2/orgs","repos_url":"https://api.github.com/users/ppf2/repos","events_url":"https://api.github.com/users/ppf2/events{/privacy}","received_events_url":"https://api.github.com/users/ppf2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:CAT%20API","name":":CAT API","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-18T03:26:11Z","updated_at":"2015-11-18T03:33:03Z","closed_at":"2015-11-18T03:33:03Z","body":"```\r\nPUT /index1foralias\r\nPUT /index2foralias\r\nPOST /_aliases\r\n{\r\n    \"actions\" : [\r\n        { \"add\" : { \"index\" : \"index1foralias\", \"alias\" : \"testalias\" } },\r\n        { \"add\" : { \"index\" : \"index2foralias\", \"alias\" : \"testalias\" } }\r\n    ]\r\n}\r\nGET /_cat/aliases?v\r\nGET /_aliases\r\nPOST /index1foralias/_close\r\nGET /_cat/aliases?v\r\nGET /_aliases\r\n```\r\n\r\nWhen using the  _cat/aliases API it does not show indices associated to an alias that are closed.  \r\n```\r\nalias     index          filter routing.index routing.search \r\ntestalias index2foralias -      -             -              \r\n```\r\n\r\nWhen using the _aliases API, it shows all indices associated to an alias regardless of their open/closed status\r\n\r\n```\r\n   \"index1foralias\": {\r\n      \"aliases\": {\r\n         \"testalias\": {}\r\n      }\r\n   }\r\n   \"index2foralias\": {\r\n      \"aliases\": {\r\n         \"testalias\": {}\r\n      }\r\n   }\r\n```"}}