Hello,

I'm trying to create a new core with SolrJ's CoreAdminRequest.createCore.

The idea is to use "/opt/solr/server/solr/configsets/jcg_example_configs/solrconfig.xml" as config file and "/opt/solr/server/solr/configsets/jcg_example_configs/managed-schema" as schema file, (or later something we stage at container startup) so the call would look like this:

        SolrClient client = new HttpSolrClient.Builder("http://localhost:8983/solr";).build();         CoreAdminResponse resp = CoreAdminRequest.createCore("xyz", "xyz", client,
"/opt/solr/server/solr/configsets/jcg_example_configs/solrconfig.xml",
"/opt/solr/server/solr/configsets/jcg_example_configs/managed-schema");

I managed to convince solr to load solrconfig.xml by setting SOLR_OPTS=-Dsolr.allow.unsafe.resourceloading=true in my docker compose, but now the call above produces this:

Unable to create core [xyz] Caused by: Can't find resource 'lang/contractions_it.txt' in classpath or '/var/solr/data/xyz' - /opt/solr/server/solr/configsets/jcg_example_configs has lang/contractions_it.txt - but that's obviously not in the classpath.

Any ideas?

Thanks,
Armin


Reply via email to