[Xapian-discuss] Spelling correction in Omega
Olly Betts
olly at survex.com
Sat Sep 13 05:43:13 BST 2008
On Fri, Sep 05, 2008 at 04:20:44PM -0500, Yevgeny Binder wrote:
> I'm trying to add spelling correction to Omega (1.0.7) by defining a
> $suggestion OmegaScript keyword with the following patch, but
> Xapian::QueryParser::get_corrected_query_string() always returns an
> empty string. I'm using a database with tens of thousands of
> documents, each with hundreds of words, so I would expect that a
> misspelling like "comptuer" should readily be corrected to "computer,"
> but it's not. I've tried numerous misspelled queries but none of them
> yield a correction string, so I suspect I'm doing something wrong.
You also need to add the spelling targets to the database at index time.
It would be nice if Omega supported this - probably just by default, as
I suspect the overhead is fairly small. So if you get it working,
please submit a patch.
Cheers,
Olly
More information about the Xapian-discuss
mailing list