Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

org.apache.solr.common.SolrException: Could not load core configuration for core collection1

Tags:

solr

I am trying to reproduce an Solr issue, But unfortunately with the provided schema & solrconfi, Solr is throwing exception.

Here is the files -

Full stacktrace :- http://pastebin.com/nmj9h2BX

Schema file :- http://pastebin.com/iwMpr7a5

Solrconfig file :- http://pastebin.com/UadPu5GV

I tried to remove the data-config handler, as I have nothing to do with this, I got an another exception.

Stack trace - http://pastebin.com/zXyZhMnN

Any clues Please, Thanks!

like image 841
user2475624 Avatar asked Oct 01 '22 05:10

user2475624


1 Answers

The problem you have with DataImportHandler is because you are referencing a variable ${dataimport.config} that doesn't exists neither a default value to it. To solve this you can create this variable in your core.properties file with a valid DataImportHandler xml config file or just define a default value to it like that: ${dataimport.config:data-config.xml}. Note that the data-config.xml must exists and be a valid configuration file. If you doesn't need DataImportHandler you can just remove the handler. The second problem you have is that you are setting the parameter enablePositionIncrements=true in StopFilterFactory that doesn't exists anymore since solr 4.4. You just need to change the filter like that:

<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />

Note that the file stopwords.txt must exists.

like image 113
Bruno dos Santos Avatar answered Oct 05 '22 11:10

Bruno dos Santos