[Xapian-discuss] Spell Checking

Richard Boulton richard at lemurconsulting.com
Tue Mar 11 14:08:52 GMT 2008


Martin Hearn wrote:
> 1) Is there any way you can get more than one spelling suggestion from  
> get_spelling_suggestion();

Not currently, no.

> 2) Can anyone confirm that any suggestion given won't necessarily  
> return any results.

It is possible for a returned suggestion not to return any results. 
This is particularly likely if the default operator is AND - the 
corrected words will usually appear in the database, but they may not 
occur in the same document.  If you have deleted documents from the 
database, it is even possible for the words suggested as spelling 
corrections not to exist in the database, since the spelling corrections 
are not automatically removed when a document is removed (though this is 
unlikely unless you've done many deletions, since the most frequent 
words are chosen as spelling corrections).

-- 
Richard



More information about the Xapian-discuss mailing list