: Has anybody successfully implemented a Lucene spellchecker within Solr?
: If so, could you give details on how one would achieve this?

There's really two ways to interpret that question ...
  1) built a spell correction suggestion application powered by Solr,
     where you manually feed it the data as documents and the mainIndex is
     the source of suggestion data.
  2) Embeded sepll correction suggestion in Solr, so that request handlers
     can return suggested alternatives allong with the results from your
     mainIndex.

#1 would probably be pretty easy as people have mentioned.

#2 would be a lot trickier...

request handlers can certainly keep state, and could even write to files
if they wanted to to preserve state accross JVM instances to maintain a
permenant dictionary store ... and i suppose you could use a newSearcher
Listener to know when documents have been added so you can scan them for
new words to update your dictionary ... but off the top of my head it
sounds like it would get pretty complicated.



-Hoss

Reply via email to