AnsweredAssumed Answered

CMIS Search by cmis:name and cmis:description case insensitive?

Question asked by robobot on Oct 4, 2018
Latest reply on Oct 4, 2018 by robobot

Hi there,

 

we are using the alfresco community version 5.2 and we are trying to perform a case insensitive search on the two standard properties cmis:name and cmis:description. Actually when searching for "AAA" only files named "AAA" will be found, not files named "aaa" or "Aaa".

 

In other threads and questions we figured out, that we have to configure this bevahiour in alfrescos schema.xml.

 

we add the following entries:

 

  <!-- LowerCaseFilter for name-->

  <fieldType name="name" class="solr.TextField">         
         <analyzer type="index">
            <tokenizer class="solr.WhitespaceTokenizerFactory"/>
            <filter class="solr.LowerCaseFilterFactory"/>
        </analyzer>
        <analyzer type="query">
            <tokenizer class="solr.WhitespaceTokenizerFactory"/>
            <filter class="solr.LowerCaseFilterFactory"/>
        </analyzer>
      </fieldType>
      
      <!-- LowerCaseFilter for description -->
      <fieldType name="description" class="solr.TextField">         
         <analyzer type="index">
            <tokenizer class="solr.WhitespaceTokenizerFactory"/>
            <filter class="solr.LowerCaseFilterFactory"/>
        </analyzer>
        <analyzer type="query">
            <tokenizer class="solr.WhitespaceTokenizerFactory"/>
            <filter class="solr.LowerCaseFilterFactory"/>
        </analyzer>
      </fieldType>

 

After performing a full re-index this entry doesn't seem to have any effect.

 

How can we change/configure the entries to match our requirement?

 

Any hints are very appreciated. Thanks in advance.

Outcomes