Turkish Characters

View: New views
2 Messages — Rating Filter:   Alert me  

Turkish Characters

by can alpar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello everyone,

I want to add turkish character support solr. For example when i make a
query with letter 'c' i want to to get result having 'c' and Turkish
character 'ç' and vice versa. How can i do that. Do you have any opinion.

Thanks,
Can

Re: Turkish Characters

by Ahmet Arslan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> I want to add turkish character support solr. For example
> when i make a
> query with letter 'c' i want to to get result having 'c'
> and Turkish
> character 'ç' and vice versa. How can i do that. Do you
> have any opinion.

You can replace Turkish characters (ç) with their ascii versions (c) with a charFilter before tokenizer:

<charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>

I am not sure if all of them exists, but mapping-ISOLatin1Accent.txt file already contains many characters in Turkish.