You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Christos Malliaridis (Jira)" <ji...@apache.org> on 2025/09/07 07:55:00 UTC

[jira] [Commented] (SOLR-12224) there is no API to read collection properties

    [ https://issues.apache.org/jira/browse/SOLR-12224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18018648#comment-18018648 ] 

Christos Malliaridis commented on SOLR-12224:
---------------------------------------------

I am certainly interested in this one. I looked up how I would retrieve this information, and had the following discoveries:

It is possible as a workaround to get the collection properties by fetching and parsing the file collectionprops.json via zookeeper (in cloud mode). The following URL would be used for techproducts:

http://localhost:8983/solr/admin/zookeeper?detail=true&path=%2Fcollections%2Ftechproducts%2Fcollectionprops.json&wt=json (v1 API)

Not sure how reliable this approach is, but it is the closest I got to the collection properties.

I would want to have a v2 endpoint like GET /api/collections/:collectionName/properties for retrieving these data. Although there is already [a proposal in the v2 API spreadsheet|https://docs.google.com/spreadsheets/d/1HAoBBFPpSiT8mJmgNZKkZAPwfCfPvlc08m5jz3fQBpA/edit?gid=687305869#gid=687305869&range=D67].

> 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
>          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
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org