Shyam,
I tried using spellcheck.collate=true, it doesn't return results
with correct word. Do I need to make any other settings?.
Thanks.
Karthik
-----Original Message-----
From: Shyamsunder Reddy [mailto:[email protected]]
Sent: Tuesday, March 17, 2009 12:06 PM
To: [email protected]
Subject: Re: spellchecker: returning results even with misspelt words
I think if you use spellcheck.collate=true, you will still receive the
results for correct word and suggestion for wrong word.
I have name field (which is first name+last name) configured for spell
check. I have name entry: GUY SHUMAKER. I am trying to find out person
names where either 'GUY' or 'SHUMAKER' or both are spelled wrong.
1. Last Name spelled wrong as 'SHAMAKER'
http://localhost:8090/solr/select?q=NAME:GUY%20SHAMAKER&fq=TYPE:PERSON&spellcheck=true&spellcheck.collate=true
It return all results that match 'GUY' and spelling suggestion for
'SHAMAKER' as 'SHUMAKER'
2. First Name spelled wrong as 'GYY'
http://localhost:8090/solr/select?q=NAME:GYY
SHUMAKER&fq=TYPE:PERSON&spellcheck=true&spellcheck.collate=true
It return No results and spelling suggestion for 'GYY' as 'GUY' and
collation as <str name="collation">NAME:guy SHUMAKER</str>
Note:But here I expected result that match SHUAMKER
3. Both first name and last name spelled wrong as: GYY SHAMAKER
http://localhost:8090/solr/select?q=NAME:GYY%20SHAMAKER&fq=TYPE:PERSON&spellcheck=true&spellcheck.collate=true
Here no results, but received suggestion for both words and collation.
It is similar to your scenario?
Also why NO results are returned for case 2.
--- On Tue, 3/17/09, Ingo Renner <[email protected]> wrote:
From: Ingo Renner <[email protected]>
Subject: spellchecker: returning results even with misspelt words
To: [email protected]
Date: Tuesday, March 17, 2009, 9:52 AM
Hi all,
I'd like to achieve the following:
When searching for e.g. two words, one of them being spelt correctly the other
one misspelt I'd like to receive results for the correct word but would still
like to get spelling suggestions for the wrong word.
Currently when I search for misspelt words I get suggestions, but no results at
all although there would be results when searching for the correct word only.
Hope you understand what I want to achieve as it's a little hard to explain.
all the best
Ingo
--Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2