[Xapian-devel] Crashes with spelling enabled and perl.
Olly Betts
olly at survex.com
Tue Dec 18 01:46:14 GMT 2007
On Sun, Dec 16, 2007 at 11:57:15PM -0700, Rusty Conover wrote:
> my $db = Search::Xapian::WritableDatabase->new("test.db",
> Search::Xapian::DB_CREATE_OR_OPEN);
> if (!defined($db)) {
> die("Failed to open xapian_database: $!");
> }
> my $indexer = Search::Xapian::TermGenerator->new();
> $indexer->set_flags(Search::Xapian::FLAG_SPELLING);
You need to add this line here so that the TermGenerator object knows
which database to add spellings to:
$indexer->set_database($db);
But a SEGV is undesirable. I'll see if I can fix that.
Cheers,
Olly
More information about the Xapian-devel
mailing list