janhoy commented on issue #776:
URL: https://github.com/apache/solr-operator/issues/776#issuecomment-6766150064

   Documented in #890 (edits 
https://solr.apache.org/guide/operator/latest/solr-cloud/custom-solr-config.html)
 with the following
   
   ```asciidoc
   === Elements the operator normally generates for you
   
   Some SolrCloud settings only work by adding elements to the `solr.xml` that 
the operator generates:
   `spec.solrModules` and `spec.additionalLibs` are written into the 
`sharedLib` element, and `spec.backupRepositories` into the `<backup>` element.
   The operator never modifies a user-provided `solr.xml`, so with a custom 
`solr.xml` these settings have no effect and you must add the elements yourself.
   
   The simplest approach is to configure these settings first, then copy the 
generated `solr.xml` as described above and customize from there.
   The relevant elements look like this for one module and one S3 repository:
   
   [source,xml]
   ----
   <str 
name="sharedLib">${solr.sharedLib:},/opt/solr/contrib/analysis-extras/lib,/opt/solr/contrib/s3-repository/lib,/opt/solr/dist</str>
   <backup>
     <repository name="s3-backups" 
class="org.apache.solr.s3.S3BackupRepository">
       <str name="s3.bucket.name">my-bucket</str>
       <str name="s3.region">us-east-1</str>
     </repository>
   </backup>
   ----
   ```
   
   Closing. Please re-open if you feel that this issue needs further followup


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to