[Xapian-devel] Trying to patch xapian perl add/remove_spelling

Henry henka at cityweb.co.za
Fri Nov 28 06:05:38 GMT 2008


Quoting "Olly Betts" <olly at survex.com>:
> Much of the code in index.t is run for both inmemory and "auto"
> backends, but the inmemory backend doesn't implement spelling
> correction.

Gotcha.

> Also, you can't use "ok(...)" around methods which don't return
> anything (if you do call "ok(...)" more, you need to increase the
> expected number of calls at the top of the file).

Thanks - 'fraid I've never got around to using Test::More...  /makes  
mental note to do so.

> I've tweaked the patch to compile and pass "make check".  I haven't
> applied it yet as it doesn't seem to be useful without
> QueryParser::get_corrected_query_string() and/or
> Database::get_spelling_suggestion() also being wrapped...

Hm, will take a few stabs there too...

Cheers
Henry




More information about the Xapian-devel mailing list