Showing results for 
Search instead for 
Did you mean: 

Case insensitive search is not working Product Search OCC API

0 Kudos

Hi All,

In Product Search OCC API, case insensitive search is not working. We have one attribute "name" of type "text" and other attributes of type "string". When we are searching then case insensitive search happening only for name field but not for other attributes.

For example : When I am searching with keyword "mytesting" then only product with name "MYTESTING" is coming up. But when I am searching with keyword "MYTESTING" then product with name and other fields matched value for "MYTESTING" coming up.

Note : All the indexed properties are free text enabled.

Attached files for reference.

Accepted Solutions (0)

Answers (1)

Answers (1)

Active Contributor
0 Kudos

Please add the following in Solr schema.xml and try again:

 <fieldType name="string_ci" class="solr.TextField" sortMissingLast="true" omitNorms="true">
     <analyzer type="query">
         <tokenizer class="solr.KeywordTokenizerFactory"/>
         <filter class="solr.LowerCaseFilterFactory"/>
0 Kudos

Hi Arvind,

Thank you for your response.

I have added above code in hybris\config\solr\instances\default\configsets\default\conf\schema.xml. But still it is not working.