[Xapian-discuss] Perl XS bindings, postlist_begin

Francis Irving francis@flourish.org
Fri, 28 May 2004 00:46:26 +0100


I'm doing some incremental indexing (using Perl) and want to check for
existing documents so I can replace them.  Looking at Omega's source
code, it uses Xapian::Document::postlist_begin and postlist_end to do
this.

In Perl I can't work out how to call this function.  From the Xapian.c
file in the XS bindings, the function seems to be called values_begin
rather than postlist_begin (I've tried both).  If I do this:

my $db=Search::Xapian::WritableDatabase->new($dbfile,
                         Search::Xapian::DB_CREATE_OR_OPEN);
my $post = $db->values_begin("ethiopia");

I get this error:

Can't locate auto/Search/Xapian/WritableDatabase/values_begi.al in
@INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.3
/usr/local/share/perl/5.8.3 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl
/usr/local/lib/perl/5.8.2 /usr/local/share/perl/5.8.2 .) at ./index.pl
line 38

I'm really puzzled why it trunactes to "values_begin.al".  What does
that ".al" mean?  A similar truncation happens if I try to call
postlist_begin.

Thank you for any suggestions,

Francis
-- 
Undemocratic Europe.  Fix it.  Vote Martin Bell.  http://www.bellforeurope.org.uk