[Xapian-discuss] QueryParser + Stopper broken? (at least from
Perl)
Olly Betts
olly at survex.com
Mon Mar 19 13:56:51 GMT 2007
On Sat, Mar 17, 2007 at 10:52:46PM -0700, Mark Blythe wrote:
> This is my first day experimenting with Xapian, and it was working
> quite well until I tried using a stopper. I'm using the Perl bindings
> (Search::Xapian), and as soon as I add a stopper into the mix, I get a
> segmentation fault. Here is a short script to demonstrate:
It looks like perl is garbage collecting the SimpleStopper class from
under our feet. You can workaround this by changing the set_stopper
line to:
my $stopper = new Search::Xapian::SimpleStopper('the');
$qp->set_stopper($stopper);
I'll look at how best to fix this properly.
Cheers,
Olly
More information about the Xapian-discuss
mailing list