Skip to content

Commit

Permalink
Update solr schema template to fix stopwords_en.txt relocation
Browse files Browse the repository at this point in the history
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
  • Loading branch information
paltman authored and justin caratzas committed Sep 22, 2013
1 parent 1cfb6c6 commit 9791c55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haystack/templates/search_configuration/solr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StopFilterFactory"
ignoreCase="true"
words="stopwords_en.txt"
words="lang/stopwords_en.txt"
enablePositionIncrements="true"
/>
<filter class="solr.LowerCaseFilterFactory"/>
Expand All @@ -82,7 +82,7 @@
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
<filter class="solr.StopFilterFactory"
ignoreCase="true"
words="stopwords_en.txt"
words="lang/stopwords_en.txt"
enablePositionIncrements="true"
/>
<filter class="solr.LowerCaseFilterFactory"/>
Expand Down

0 comments on commit 9791c55

Please sign in to comment.