You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2014/02/19 16:46:21 UTC
[jira] [Commented] (SOLR-5466) Add List Collections functionality
to Collections API
[ https://issues.apache.org/jira/browse/SOLR-5466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13905572#comment-13905572 ]
Shalin Shekhar Mangar commented on SOLR-5466:
---------------------------------------------
Thanks Varun. I think we should repurpose this API to be more general. I think it should return collection properties as well as shard properties.
For example:
{code}
/admin/collections?action=STATUS
{code}
The above returns a list of all collections in the cluster.
{code}
/admin/collections?action=STATUS&collection=collection1
{code}
The above returns info only about collection1 and its shards (including their properties)
or
{code}
/admin/collections?action=STATUS&collection=collection1&shard=shard1,shard2,shard3...
{code}
The above call should return collection properties and shard properties for shard1,shard2 and shard3.
I wish to remove the need to lookup against ZK directly for information that is inside cluster state.
> Add List Collections functionality to Collections API
> -----------------------------------------------------
>
> Key: SOLR-5466
> URL: https://issues.apache.org/jira/browse/SOLR-5466
> Project: Solr
> Issue Type: Sub-task
> Components: scripts and tools, SolrCloud
> Environment: All
> Reporter: Dave Seltzer
> Assignee: Shalin Shekhar Mangar
> Priority: Minor
> Labels: api, collections, rest
> Attachments: SOLR-5466.patch
>
>
> The collections API lets you add, delete and modify existing collections. At the moment the API does not let you get a list of current collections or view information about a specific collection.
> The workaround is the use the Zookeeper API to get the list. This makes the Collections API harder to work with.
> Adding an action=LIST would significantly improve the function of this API.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org