I'm afraid there currently isn't much support for correcting misplaced 
whitespace.  Solr is going to look at each word individually and won't even try 
to combine ajacent words (or split a word into 2 or more).  So there is no good 
way to get these kinds of suggestions.

One thing that might work in some cases is to create a spelling dictionary 
composed of shingles (2+ words indexed together as 1 token).  This approach is 
described in Smiley&Pugh's Solr book, (1st ed) p.180ff under the heading "An 
alternative approach".  I haven't tried this but it might be your best hope if 
this is a feature you've absolutely got to have.

James Dyer
E-Commerce Systems
Ingram Content Group
(615) 213-4311


-----Original Message-----
From: O. Klein [mailto:kl...@octoweb.nl] 
Sent: Friday, July 22, 2011 8:11 PM
To: solr-user@lucene.apache.org
Subject: Spellcheck compounded words

How do I get spellchecker to suggest compounded words?

Like. q=sail booat

and suggestion/collate is "sailboat" and "sail boat"

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Spellcheck-compounded-words-tp3192748p3192748.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to