Skip to content

Commit 9791c55

Browse files
paltmanjustin caratzas
authored and
justin caratzas
committed
Update solr schema template to fix stopwords_en.txt relocation
Seems that in versions >3.6 and >4 stopwords_en.txt moved to a new location. This won't be backwards compatible for older versions of solr. Addresses issues django-haystack#558, django-haystack#560 In addition, issue django-haystack#671 references this problem
1 parent 1cfb6c6 commit 9791c55

File tree

1 file changed

+2
-2
lines changed
  • haystack/templates/search_configuration

1 file changed

+2
-2
lines changed

haystack/templates/search_configuration/solr.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<tokenizer class="solr.StandardTokenizerFactory"/>
6767
<filter class="solr.StopFilterFactory"
6868
ignoreCase="true"
69-
words="stopwords_en.txt"
69+
words="lang/stopwords_en.txt"
7070
enablePositionIncrements="true"
7171
/>
7272
<filter class="solr.LowerCaseFilterFactory"/>
@@ -82,7 +82,7 @@
8282
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
8383
<filter class="solr.StopFilterFactory"
8484
ignoreCase="true"
85-
words="stopwords_en.txt"
85+
words="lang/stopwords_en.txt"
8686
enablePositionIncrements="true"
8787
/>
8888
<filter class="solr.LowerCaseFilterFactory"/>

0 commit comments

Comments
 (0)