lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <>
Subject Re: accent insensitive field-type
Date Thu, 02 Jul 2015 08:47:38 GMT
Hi Soren,

I am not familiar with managed schema part, but there are built-in filters for this task.

ASCIIFoldingFilter and ICUFoldingFilter are two examples. 

Also solr provides two files: mapping-FoldToASCII.txt and mapping-ISOLatin1Accent.txt to be
used with 
MappingCharFilter as you did.
You are probably hitting a problem with managed schema.


On Thursday, July 2, 2015 11:17 AM, Søren <> wrote:
Hi Solr users

I'm new to Solr and I need to be able to search in structured data in a 
case and accent insensitive manner. E.g. find "Crème brûlée", both when 
quering with "Crème brûlée" and "creme brulee".

It seems that none of the build-in text types support this, or am I wrong?
So I try to add my own inspired by another post, although it was old.

I'm running solr-5.2.1.

Curl to http://localhost:8983/solr/mycore/schema
         "charFilter": {"class":"solr.MappingCharFilterFactory", 
         "filter": {"class":"solr.LowerCaseFilterFactory"},
         "tokenizer": {"class":"solr.StandardTokenizerFactory"}

But it doesn't work and when I look in '[... 
the analyzer section is reduced to this:
   <fieldType name="myTxtField" class="solr.TextField" 
       <tokenizer class="solr.StandardTokenizerFactory"/>

  I'm I almost there or am I on a completely wrong track?

Thanks in advance

View raw message