RE: Spellcheck: Two dictionaries

2011-05-27 Thread roySolr
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.


RE: Spellcheck: Two dictionaries

2011-05-27 Thread Dyer, James
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.


Re: Spellcheck: Two dictionaries

2011-05-26 Thread roySolr
??

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


RE: Spellcheck: Two dictionaries

2011-05-26 Thread Dyer, James
Are you trying to do something like this:

defType=dismaxqf=what whereq=(spellchek me with both diktionaries fur what 
and where)

??

If so, then I believe your only option is to create a third dictionary that 
combines what and where into one big uber-dictionary.  Create a new field 
and copyField the values into it.  Base your uber-dictionary on this new 
field.

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


-Original Message-
From: roySolr [mailto:royrutten1...@gmail.com] 
Sent: Thursday, May 26, 2011 3:24 AM
To: solr-user@lucene.apache.org
Subject: Re: Spellcheck: Two dictionaries

??

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