Creating and Adding Custom Solr Files to Code Repository
You can customize Solr by creating Solr configuration files and the relevant schema.
Prerequisites
- Your Solr customization files are compatible with your SAP Commerce Cloud version.
- The size of each of your customization files doesn't exceed 1 MB.
- The SAP Commerce Cloud manifest.json file is in the code repository. A sample manifest file is already provided for you if you cloned github/SAP-samples/cloud-commerce-sample-setup
. - Your code repository is connected to the Cloud Portal. For more information, see Connecting a Code Repository Using SSH and Connecting a Code Repository Using HTTPS.
Context
During the build process, your custom Solr files replace the ones that are provided by SAP Commerce Cloud. To learn more about Solr configuration files, see Configuration Files
.
Solr configuration files can have the following extensions:
- .cfg
- .html
- .jar
- .json
- .png
- .properties
- .txt
- .vm
- .xml
- .xsl
When extending your Solr configuration using custom JAR files, use the same version of Java to compile your files as in the corresponding SAP Commerce Cloud version. For more information on Java versions in SAP Commerce Cloud, see Third-Party Compatibility.