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?
CREATEALIAS
DELETEALIAS
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.
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.
Source: https://habr.com/ru/post/971961/More articles:Skrollr not working on mobile devices - javascriptPut one numeric variable in n numeric variables in n graphs - rget the real address (or index in vTable) of a virtual member function - c ++Is there any gain in Swift by defining constants instead of variables as much as possible? - variablesChange git branch on eclipse - gitSerialization Issues Using Functional Implementations Using Spark - javaFull screen image with img tag - htmlDjango NameError: the name 'views' is undefined - pythonHow should I refer to functions in imported packages? - namespacesRounded corner editor options - javascriptAll Articles