You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Kraus, Ralf | pixelhouse GmbH" <rk...@pixelhouse.de> on 2009/06/30 17:19:12 UTC

SOLR SpeelChecker and german Umlauts

Hello,

I really need some help with the SOLR SpeelChecker and german Umlauts.
So far I am really satisfied with the JAROWINKLER algorithm.

Now my problem :-)

When I am searching for ONE word with an german umlaut like 
"kräuterkeckse" (the right word is kräuterkekse) the spellchecker
gives me two corrections :

Spellcheck for kr = kren
Spellcheck for uterkeksse = butterkekse

WHY is SOLR break this ONE word apart ?

My Config is :

spellcheck = 'true';
spellcheck.dictionary = 'jarowinkler'
spellcheck.onlyMorePopular = 'true'
spellcheck.build = 'false'
spellcheck.count = 1

Greets -Ralf-

Re: SOLR SpeelChecker and german Umlauts

Posted by "Kraus, Ralf | pixelhouse GmbH" <rk...@pixelhouse.de>.
Michael Ludwig schrieb:
> Kraus, Ralf | pixelhouse GmbH schrieb:
>> When I am searching for ONE word with an german umlaut like
>> "kräuterkeckse" (the right word is kräuterkekse) the spellchecker
>> gives me two corrections :
>>
>> Spellcheck for kr = kren
>> Spellcheck for uterkeksse = butterkekse
>>
>> WHY is SOLR break this ONE word apart ?
>
> Moin Ralf,
>
> please read the following threads to understand the issue. In short,
> you need to specify your query in spellcheck.q as well.
DANKE ! :-)


Greets -Ralf-

Re: SOLR SpeelChecker and german Umlauts

Posted by Michael Ludwig <ml...@as-guides.com>.
Kraus, Ralf | pixelhouse GmbH schrieb:
> When I am searching for ONE word with an german umlaut like
> "kräuterkeckse" (the right word is kräuterkekse) the spellchecker
> gives me two corrections :
>
> Spellcheck for kr = kren
> Spellcheck for uterkeksse = butterkekse
>
> WHY is SOLR break this ONE word apart ?

Moin Ralf,

please read the following threads to understand the issue. In short,
you need to specify your query in spellcheck.q as well.

Re: French and SpellingQueryConverter - Shalin Shekhar Mangar
http://markmail.org/message/k35r7qmpatjvllsc

SpellCheckComponent: queryAnalyzerFieldType - Michael Ludwig
http://markmail.org/thread/dgi4llhc7x5wuroc

(BTW, the patch in SOLR-1204 is ready but still awaiting clarification.
See comments from June 11 and 18.)

> My Config is :
>
> spellcheck = 'true';
> spellcheck.dictionary = 'jarowinkler'
> spellcheck.onlyMorePopular = 'true'
> spellcheck.build = 'false'
> spellcheck.count = 1

So add: spellcheck.q = 'your query'

Michael Ludwig