solrplone

Solr schema.xml changes not recognized by Solr


I recently made a tiny change in my schema.xml file. Basically the only thing I did was changing the stopwords file the StopFilter uses: <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" /> changed to <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords_de.txt" />

stopwords_de.txt is from the predefined set of stopwords provided by Solr.

However, my problem now is that the changes in the schema won't be applied even when I reindex. I checked the Solr Admin UI schema browser for this field and the StopFilter still uses the old stopwords file after reindexing.

Do I need to reload my core or even restart Solr for these changes to apply? So far Reindexing did that job just fine.


I am using the Collective Solr 4.1.0 Search on our Plone 4.2.6 system.


Solution

  • Restart the server. Also, have a look at the documentation about reloading a core.

    Please note that since Solr 4.0, does not reload everything (e.g. changes in <dataDir> are ignored). You can refer to SOLR-3592 for more information on that topic.