You're up against a couple of real limitations with Solr's spell checking. The
first limitation is that you can only use 1 dictionary per query.
The second limitation is that if a word is in the dictionary it never tries to
correct it. This will happen even if you *don't* combine your two dictionaries
(albeit it will happen less because the dictionary you use will be smaller).
The best workaround to this second limitation is to use
spellcheck.onlyMorePopular=true. This is a pretty bad solution though
because onlyMorePopular then makes the spellchecker assume *all* of the words
in the query need to be re-spelled.
The solr spellchecker really does need a hybrid option that will both correct
the obviously misspelled words and also try some more popular alternates. It
could then try different combinations, creating collation queries and testing
them against the index prior to returning them. SOLR-2010 (included in 3.1)
got us part of the way there but there is still more work to do.
James Dyer
E-Commerce Systems
Ingram Content Group
(615) 213-4311
-Original Message-
From: roySolr [mailto:royrutten1...@gmail.com]
Sent: Friday, May 27, 2011 3:09 AM
To: solr-user@lucene.apache.org
Subject: RE: Spellcheck: Two dictionaries
That uber dictionary is not what i want. I get also suggestions form the
where in the what. An example:
what where
chelseaLondon
Soccerclub Bondon London
When i type soccerclub london i want the suggestion from the what
dictionary. Did you mean Soccerclub Bondon. With the uber dictionary i
don't get this suggestion because it is spelled correctly.(based on the
where)
--
View this message in context:
http://lucene.472066.n3.nabble.com/Spellcheck-Two-dictionaries-tp2931458p2992093.html
Sent from the Solr - User mailing list archive at Nabble.com.