[Xapian-discuss] Spell Checking

Martin Hearn martinhearn at mac.com
Tue Mar 11 14:27:13 GMT 2008


Thanks Richard - just to confirm, increasing the distance won't change  
the results once a suggestion has been found?

On 11 Mar 2008, at 14:08, Richard Boulton wrote:

> 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