Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>IF you want to ignore the special characters, try using the following field type.<br> This would lower case the words and catenate the words excluding all special chars.</p> <pre><code> &lt;fieldType name="string_sort" class="solr.TextField" positionIncrementGap="1"&gt; &lt;analyzer type="index"&gt; &lt;tokenizer class="solr.KeywordTokenizerFactory" /&gt; &lt;filter class="solr.LowerCaseFilterFactory" /&gt; &lt;filter class="solr.WordDelimiterFilterFactory" catenateWords="1" /&gt; &lt;/analyzer&gt; &lt;/fieldType&gt; </code></pre> <p>However, this would not work for 'sAmerica as s is not a special character.</p> <pre><code>&lt;filter class="solr.PatternReplaceFilterFactory" pattern="'s" replacement="" replace="all" /&gt; </code></pre> <p>If this is fixed pattern you need to replace it before the word delimiter with above.</p> <p>Edit -- Are you using this config ?</p> <pre><code>&lt;fieldType name="string_sort" class="solr.TextField" positionIncrementGap="1"&gt; &lt;analyzer type="index"&gt; &lt;tokenizer class="solr.KeywordTokenizerFactory" /&gt; &lt;filter class="solr.LowerCaseFilterFactory" /&gt; &lt;filter class="solr.PatternReplaceFilterFactory" pattern="'s" replacement="" replace="all" /&gt; &lt;filter class="solr.WordDelimiterFilterFactory" catenateWords="1" /&gt; &lt;/analyzer&gt; &lt;/fieldType&gt; </code></pre> <p>Have tested the following through analysis and it produces the following tokens - </p> <p>KT - 'sAlgarve<br> LCF - 'salgarve<br> PRF - algarve<br> WDF - algarve </p> <p>Can you check through the analysis.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload