0
votes

we are using solr cloud 7.7.2 and all works fine with our collections. Below is the kind of simplified curl statement we use to create our collections:

curl -X POST -H 'Content-type: application/json' -d '{"create": {"name": "organization-3.0.0", "config": "organization-3.0.0-cfg", "numShards": "1", "replicationFactor": "3", "maxShardsPerNode": "1", 
  "properties": {
    "solr": { 
      "db": {
        "driver": "com.mysql.jdbc.Driver" 
      }
    } 
  }
}}' http://192.168.0.10:8983/api/collections

it is inspired form https://lucene.apache.org/solr/guide/7_7/configuring-solrconfig-xml.html#user-defined-properties-in-core-properties

As you can see we have a json as value for the "properties" attribute. by doing so, the properties end up being added to the core.properties (in each shards) and we use these properties to perform data import via DIH.

When we want to update the value of the "properties" attribute, we actually create a new collection under a new name ex: organization-3.0.1 and reimport all data via DIH (which can take a lot of time).

We would like to be able to really update the value of the "properties" attribute on existing collections.

I could not see the “properties” attribute being a valid attribute in the documentation https://lucene.apache.org/solr/guide/7_7/collections-api.html#modifycollection

So I wonder if there are any ways to modify the "properties" attribute on solr collections?

1

1 Answers

0
votes

There is - the problem for you is that it was introduced with Solr 7.3 - the version after the one you have active. I suggest upgrading to a more recent version - go all the way to 8.5.x (it should be an easier upgrade since it's only one major version between them).

COLLECTIONPROP

Add, edit or delete a collection property.

/admin/collections?action=COLLECTIONPROP&name=collectionName&propertyName=propertyName&propertyValue=propertyValue