Shawn Heisey commented on SOLR-12224:

Transferring and expanding on my thoughts from the mailing list:

For contrast with something else in Solr:  The dataimport handler defaults to 
"status" if the command is missing from the request.

We could do something similar within the COLLECTIONPROP action on the 
collections API if the propertyName/propertyValue parameters are absent.  Or we 
could add a new action, something like LISTCOLLECTIONPROP.  (some limited 
bikeshedding welcome).

IMHO, the functionality to show collection properties should allow multiple 
"name" parameters to get information for multiple collections, or list them all 
if "name" is omitted.  And the output format in json/xml/javabin/whatever 
should be the same whether there is info from one collection or many.

> there is no API to read collection properties
> ---------------------------------------------
>                 Key: SOLR-12224
>                 URL: https://issues.apache.org/jira/browse/SOLR-12224
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>    Affects Versions: 7.3
>            Reporter: Hendrik Haddorp
>            Priority: Major
> Solr 7.3 added the COLLECTIONPROP API call 
> (https://lucene.apache.org/solr/guide/7_3/collections-api.html#collectionprop)
>  that allows to set arbitrary properties on a collection. There is however no 
> API call that returns the data. The only option is to manually read out the 
> collectionprops.json file in ZK below the collection.
> Options could be that the COLLECTIONPROP command has an option to retrieve 
> properties, have a special command to list the properties and/or to have the 
> properties listed in the clusterstatus output for a collection.
> Would be great if SolrJ would also be supported.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to