Skip to main content
edited title
Link
Mark Cassidy
  • 25.4k
  • 7
  • 59
  • 117

Solr: LowerCaseKeywordAnalyzer does not work

deleted 74 characters in body
Source Link
Marek Musielak
  • 24.2k
  • 3
  • 31
  • 64

We have overriden the default mapping by adding:

<indexConfigurations>
 <defaultSolrIndexConfiguration type="Sitecore.ContentSearch.SolrProvider.SolrIndexConfiguration, Sitecore.ContentSearch.SolrProvider">
    <fieldMap type="Sitecore.ContentSearch.SolrProvider.SolrFieldMap, Sitecore.ContentSearch.SolrProvider">
        <fieldNames hint="raw:AddFieldByFieldName">
              <field fieldName="vehiclename" returnType="string" indexType="string">
                <analyzer type="Sitecore.ContentSearch.LuceneProvider.Analyzers.LowerCaseKeywordAnalyzer, Sitecore.ContentSearch.LuceneProvider" />
              </field>
            </fieldNames>
       </fieldMap>
 </defaultSolrIndexConfiguration>
</indexConfigurations>

However, while querying on this field, it is case sensitive. Kindly help

We have overriden the default mapping by adding:

<indexConfigurations>
 <defaultSolrIndexConfiguration type="Sitecore.ContentSearch.SolrProvider.SolrIndexConfiguration, Sitecore.ContentSearch.SolrProvider">
    <fieldMap type="Sitecore.ContentSearch.SolrProvider.SolrFieldMap, Sitecore.ContentSearch.SolrProvider">
        <fieldNames hint="raw:AddFieldByFieldName">
              <field fieldName="vehiclename" returnType="string" indexType="string">
                <analyzer type="Sitecore.ContentSearch.LuceneProvider.Analyzers.LowerCaseKeywordAnalyzer, Sitecore.ContentSearch.LuceneProvider" />
              </field>
            </fieldNames>
       </fieldMap>
 </defaultSolrIndexConfiguration>
</indexConfigurations>

However, while querying on this field, it is case sensitive. Kindly help

We have overriden the default mapping by adding:

<indexConfigurations>
 <defaultSolrIndexConfiguration type="Sitecore.ContentSearch.SolrProvider.SolrIndexConfiguration, Sitecore.ContentSearch.SolrProvider">
    <fieldMap type="Sitecore.ContentSearch.SolrProvider.SolrFieldMap, Sitecore.ContentSearch.SolrProvider">
        <fieldNames hint="raw:AddFieldByFieldName">
              <field fieldName="vehiclename" returnType="string" indexType="string">
                <analyzer type="Sitecore.ContentSearch.LuceneProvider.Analyzers.LowerCaseKeywordAnalyzer, Sitecore.ContentSearch.LuceneProvider" />
              </field>
            </fieldNames>
       </fieldMap>
 </defaultSolrIndexConfiguration>
</indexConfigurations>

However, while querying on this field, it is case sensitive. Kindly help

Source Link

Solr: LowerCaseKeywordAnalyzer does not work

We have overriden the default mapping by adding:

<indexConfigurations>
 <defaultSolrIndexConfiguration type="Sitecore.ContentSearch.SolrProvider.SolrIndexConfiguration, Sitecore.ContentSearch.SolrProvider">
    <fieldMap type="Sitecore.ContentSearch.SolrProvider.SolrFieldMap, Sitecore.ContentSearch.SolrProvider">
        <fieldNames hint="raw:AddFieldByFieldName">
              <field fieldName="vehiclename" returnType="string" indexType="string">
                <analyzer type="Sitecore.ContentSearch.LuceneProvider.Analyzers.LowerCaseKeywordAnalyzer, Sitecore.ContentSearch.LuceneProvider" />
              </field>
            </fieldNames>
       </fieldMap>
 </defaultSolrIndexConfiguration>
</indexConfigurations>

However, while querying on this field, it is case sensitive. Kindly help