[Xapian-discuss] termgenerator + stopper + ruby not working?

John Leach john at johnleach.co.uk
Sat Jul 18 12:33:29 BST 2009


Hi,

I'm working on a more Ruby-ish Ruby library for Xapian called
XapianFu[1] but I've run into a problem using the SimpleStopper.

I'm not sure if I'm using it wrong, or if there is a bug with the Ruby
bindings or something so I'm hoping someone can shed some light on it
for me.

I can set up a stopper and it works as expected on its own, but when
used with a TermGenerator it seems not to work.  

I'd expect the TermGenerator to not return terms that the stopper
returned true for, but it does.  This is the expected behaviour right?

I've attached an example Ruby program to reproduce the situation.  Any
clues are much appreciated.

Thanks,

John.
http://johnleach.co.uk

[1] http://github.com/johnl/xapian-fu/tree/master


More information about the Xapian-discuss mailing list