[Xapian-discuss] some sample perl code
Dan Carpenter
error27 at gmail.com
Sat Feb 4 00:44:59 GMT 2006
2006/2/3, Olly Betts <olly at survex.com>:
> I'll add a version of simpleindex to match C++ and the other
> bindings. Presumably you're happy for me to include your example too?
>
Yeah. That's great.
> > One thing that puzzled me is I'm not sure about the error handling on
> > set_data() and add_posting(). Wouldn't they normally return 0 on
> > failure so that you could say set_data() or warn "set_data() failed"?
>
> I think there's no way set_data can fail while add_posting can only
> fail if you try to give an empty termname, in which case an exception is
> thrown. Looking at the XS glue, that case doesn't seem to be handled
> currently.
>
Hm... I guess I'll not pass an empty term name then. Works for me. ;)
regards,
dan carpenter
More information about the Xapian-discuss
mailing list