SAP Knowledge Base Article - Preview

3720587 - Solr Placeholder Properties in solrconfig.xml Not Resolved When Set in CCv2 Solr Service Properties

Symptom

Administrators configure custom Solr cache parameters or other Solr properties using placeholders in solrconfig.xml. 

For example:

size="${py.documentCache.size:49152}"

initialSize="${py.documentCache.initialSize:8192}"

 
 
 

Values are also defined in the SAP Commerce Cloud (CCv2) Portal -> Solr Service -> Properties. However, during runtime, Solr ignores the configured values and instead always uses the fallback defaults defined after the colon in the placeholder (e.g., 49152, 8192).

After deployment or restart:

  • The expected custom property values are not applied.
  • Solr does not pick up the values set in the Cloud Portal.
  • Cache sizes or other configuration parameters remain unchanged.
  • No errors appear in the logs; Solr simply resolves the placeholders using the default values.


Read more...

Environment

SAP Commerce Cloud 

Product

SAP Commerce Cloud all versions

Keywords

solrconfig.xml, solr configuration, documentCacheSize, solr properties, JVM startup parameters, Solr Config API, override solr parameters, solr node settings, solr.xml, cache parameters, rolling restart, SAP Commerce Cloud , KBA , CEC-SCC-CLA-ENV-EMG , Environment Management , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.