Skip to content

Commit

Permalink
synonyms should be on query analyzer, not index analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
hudajkhan committed Jul 11, 2024
1 parent dcfdd91 commit 7e939ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion earthworks-aardvark-stage/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@
<fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords_en.txt"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.EnglishPossessiveFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords_en.txt"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.EnglishPossessiveFilterFactory"/>
Expand Down

0 comments on commit 7e939ae

Please sign in to comment.