[Xapian-devel] Problem with Perl bindings (enquire)
R. Mattes
rm at mh-freiburg.de
Fri Jul 15 01:11:36 BST 2005
Hello list,
looks like one can open a Xapian database in read-only mode and do the
following:
$db = Search::Xapian::Database->new("/foo/bar/");
$enq = $db->enquire("XIDblub");
the same doesn't seem to be possible with a database opened in read-write
mode:
$db = Search::Xapian::WritableDatabase->new("/foo/bar/",
Search::Xapian::DB_CREATE_OR_OPEN);
$enq = $db->enquire("XIDblub");
I first thought that this would be caused by a missing wrapper in
Search::Xapian::WritableDatabase but when i duplicate the code from
Search::Xapian::Database i get the following error:
Search::Xapian::Enquire::new() -- databases is not a
"Search::Xapian::Database" object at ./indexer.pl line 241.
This is pretty disappointing since fetching a document by index-term
is rather neccessary during indexing -- or how should one fetch a document
to replace it during re-indexing without enquires to the database?
TIA Ralf Mattes
More information about the Xapian-devel
mailing list