Posts tagged case insensitive string
Solr 3.5 – Search case insensitive on a string field for exact match
612 years ago
by Pieter Vogelaar
in Solr
Solr has by default in the schema.xml the field type “string” available.
<!-- The StrField type is not analyzed, but indexed/stored verbatim. -->
<fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
With this field type you can search with a string to get an exact match, instead of a contains match that the “text_general” field type will give you. However another difference is that the “text_general” field type is case insensitive by default and “string” is case sensitive.
To perform an case insensitive exact match search, you’ll have to add a custom field type More >