Search code examples
solrcloud

How to list SolrCloud aliases?


In SolrCloud Collections API (https://cwiki.apache.org/confluence/display/solr/Collections+API), we can list collections using action:

/admin/collections?action=LIST

However, aliases are not included in this list. There is also no corresponding command for aliases (we can only CREATEALIAS or DELETEALIAS). How to list aliases?


Solution

  • This feature seems to be not implemented yet: https://issues.apache.org/jira/browse/SOLR-4968

    However, you can use this command:

    /admin/collections?action=CLUSTERSTATUS
    

    Each collection will be listed together with the aliases it is covered by. Also in the bottom of the XML there is a separate node, summarising all aliases and covered collections.