That's exactly what I did with my custom version of the SpellCheckerHandler. However, I didn't handle suggestionCount and only returned the one corrected phrase which contains the "best" corrected terms. There is an issue on Lucene issue tracker regarding multi-word spellchecker: https://issues.apache.org/jira/browse/LUCENE-550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel .
On 8/11/07, Pieter Berkel <[EMAIL PROTECTED]> wrote: > > On 11/08/07, climbingrose <[EMAIL PROTECTED]> wrote: > > > > The spellchecker handler doesn't seem to work with multi-word query. For > > example, when I tried to spellcheck "Java developar", it returns nothing > > while if I tried "developar", spellchecker correctly returns > "developer". > > I > > followed the setup on the wiki. > > > While I suppose the general case for using the spelling checker would be a > query containing a single misspelled word, it would be quite useful if the > handler applied the analyzer specified by the termSourceField fieldType to > the query input and then checked the spelling of each query token. This > would seem to be the most flexible way of supporting multi-word queries > (provided the termSourceField didn't use any stemmer filters I suppose). > > Piete > -- Regards, Cuong Hoang