How to list SolrCloud aliases?

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

/admin/collections?action=LIST 

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

+6
source share
2 answers

This feature has not yet been implemented: https://issues.apache.org/jira/browse/SOLR-4968

However, you can use this command:

 /admin/collections?action=CLUSTERSTATUS 

Each collection will be listed with the aliases to which it applies. There is also a separate node at the bottom of XML that summarizes all the aliases and covered collections.

+7
source

The alias list can be selected in json format using the following command.

[solr_server_hostname]:8983/solr/zookeeper?detail=true&path=/aliases.json

The data field in this JSON contains a list of collection objects.

+4
source

Source: https://habr.com/ru/post/971961/


All Articles