[Xapian-discuss] Where is the get_docid method for perl?
Jim
k4gvo at bellsouth.net
Sun Sep 30 19:26:12 BST 2007
I tried the following:
my $mset = $enq->get_mset(0, 10);
print "Size ". $mset->size()."\n";
my %hits;
for(my $mit=$mset->begin(); $mit != $mset->end();$mit++) {
my %hit;
my $doc = $mit->get_document();
my $id = $doc->get_docid();
my $data=$doc->get_data();
...
}
It fails with:
Can't locate auto/Search/Xapian/Document/get_docid.al in @INC (@INC
contains: /etc/perl /usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at
secsearch.pl line 172
at /usr/share/perl/5.8/AutoLoader.pm line 112
AutoLoader::AUTOLOAD('Search::Xapian::Document=SCALAR(0x89b3adc)')
called at secsearch.pl line 172
main::dosearch() called at secsearch.pl line 27
I see in the example on perldoc for Search/Xapian that there is a method
of the Enquire class named "matches" and it returns a pointer to an
unnamed class that includes the get_docid, but there isn't any
documentation for it in the API. Am I missing some documentation somewhere?
I searched the wiki for "perl" and got no hits. I searched the xapian
web site and it told me it couldn't find the default database.
Hm.
Jim.
More information about the Xapian-discuss
mailing list