Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list SolrCloud aliases?

Tags:

solrcloud

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?

like image 916
nuoritoveri Avatar asked Jul 09 '14 09:07

nuoritoveri


1 Answers

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.

like image 178
nuoritoveri Avatar answered Oct 02 '22 15:10

nuoritoveri