Skip to content

Commit

Permalink
Strip initial and final punctuation around terms.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Aug 27, 2024
1 parent 430069a commit 234e4e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions searchworks-gryphon-search/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,15 @@
<fieldtype name="text_ws" class="solr.TextField" positionIncrementGap="10000" autoGeneratePhraseQueries="true">
<analyzer type="index">
<charFilter class="solr.PatternReplaceCharFilterFactory" pattern="\s+(\p{Punct}+)\s+" replacement=" " />
<charFilter class="solr.PatternReplaceCharFilterFactory" pattern="\s+([&quot;\[{(])" replacement=" " />
<charFilter class="solr.PatternReplaceCharFilterFactory" pattern="([;:.,&quot;\]})]+)\s+" replacement=" " />
<tokenizer class="solr.WhitespaceTokenizerFactory" />
<filter class="solr.ICUNormalizer2FilterFactory" />
</analyzer>
<analyzer type="query">
<charFilter class="solr.PatternReplaceCharFilterFactory" pattern="\s+(\p{Punct}+)\s+" replacement=" " />
<charFilter class="solr.PatternReplaceCharFilterFactory" pattern="\s+(&quot;)" replacement=" " />
<charFilter class="solr.PatternReplaceCharFilterFactory" pattern="([;:.,&quot;]+}+)\s+" replacement=" " />
<tokenizer class="solr.WhitespaceTokenizerFactory" />
<filter class="solr.ICUNormalizer2FilterFactory" />
</analyzer>
Expand Down

0 comments on commit 234e4e6

Please sign in to comment.