We had to modify the standard A12Core to fit our needs by increasing the value for maxBooleanClauses in solrconfig.xml and would need to have that modification also for local development with embedded mode. Otherwise we would have an error during certain conditions while developing locally. Switching to 2025.06 is planned and will happen next year but is not an immediate option. Is there a way to modify the configuration value for the embedded Solr or use an own core during embedded mode?
DS Team provided us some option for this please check if it will fit for you:
- disable
mgmtp.a12.dataservices.search.solr.embedded.inMemory(see Search Service Configuration) - create a Solr directory for your cores and point to it using
mgmtp.a12.dataservices.search.solr.embedded.location(e.g. /a12/solr - details also in mentioned configuration^)
(additional hint: if you have an own core with an own name, make sure to update the name using configuration mgmtp.a12.dataservices.search.solr.collection.name)
When I tried to implement the solution I ran into another problem:
Configuration:
# Solr Configuration for local development
mgmtp.a12.dataservices.search.service=solrclient
mgmtp.a12.dataservices.search.solr.embedded.inMemory=false
mgmtp.a12.dataservices.search.solr.embedded.location=src/main/resources/solr/
mgmtp.a12.dataservices.search.solr.collection.name=SSPA12Core
mgmtp.a12.dataservices.search.solr.embedded.enabled=true
mgmtp.a12.dataservices.cdd.solr.embedded.inMemory=false
mgmtp.a12.dataservices.cdd.solr.embedded.location=src/main/resources/solr/
mgmtp.a12.dataservices.cdd.solr.collection.name=SSPA12CddCore
mgmtp.a12.dataservices.cdd.solr.embedded.enabled=true
mgmtp.a12.dataservices.search.solr=EMBEDDED
Problem:
I placed my own cores unter src/main/resources/solr/ and they are found correctly as it seems. During startup the folder src/main/resources/solr/configsets and the file src/main/resources/solr/solr.xml are created. For both cores the correct schema.xml is created but the wrong solrconfig.xml. In it the value for maxBooleanClauses is defaulted to 1024 while the one I have placed in my own is ignored. How can I start the embedded Solr with my own configuration for maxBooleanClauses in solrconfig.xml
hi @andreas-tagged-kernel
For a custom solrconfig.xml:
The document and CDD must use the same configuration. Therefore, Data Services copied the solrconfig.xml from a same source file.
In your case, your custom solrconfig.xml file must be located at the following path:
src/main/resources/solr/solrconfig.xml"