Hello,
We got a request which is to Ignore capitalization and punctuation when ordering alphabetically in facet page.
I got the following xml result, which the facet display has reflected this index order which is case sensitive:
<lst name="facet_fields">
<lst name="subject_topic_sim">
<int name="A.R. Robbins Marine Engine Works">6</int>
<int name="AIDS (Disease) and art">3</int>
<int name="ALVIN">2</int>
<int name="ANVIL">11</int>
<int name="ASH LENS">1</int>
<int name="Abaiang Island; Tarawa Atoll">1</int>
<int name="Abalone fisheries-Mexico-Baja California (Peninsula)">3</int>
So I added the following filters to our solr schema.xml and reindexed records:
<fieldtype name="alphaSort" class="solr.TextField" sortMissingLast="true" omitNorms="true">
<analyzer>
<tokenizer class="solr.KeywordTokenizerFactory" />
<filter class="solr.LowerCaseFilterFactory" />
<filter class="solr.TrimFilterFactory" />
<filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])" replacement="" replace="all"/>
</analyzer>
</fieldtype>
But the display result doesn’t change, it is still case sensitive and have punctuation.
Does anyone know how to get facet page order case insensitive and and ignore punctuation by updating the schema.xml? Did I miss anything? Thanks!