I have a field with lowercase filter on search and index sides, and
searching in this field works fine with uppercase or lowercase terms,
except if I wildcard!  So searching for 'gps' or 'GPS' returns the same
result set, but searching for 'gps*' returns results as expected and
searching for 'GPS*' returns nothing.  It seems the asterisk blocks the
lower case filter operation and then no matches occur because the index
is all lowercased.

 

This is a very simple index with very simple docs, and the field is
defined like this in the schema:

 

<field name="phraseNoSpaces"  type="alphaOnlySort" indexed="true"
stored="false" required="true"/>

 

 

            <fieldType name="alphaOnlySort" class="solr.TextField"
sortMissingLast="true" omitNorms="true">

                  <analyzer>

                        <tokenizer
class="solr.KeywordTokenizerFactory"/>

                        <filter class="solr.LowerCaseFilterFactory" />

                        <filter class="solr.TrimFilterFactory" />

                  </analyzer>

            </fieldType>

 

Reply via email to