[Xapian-devel] Re: Problem with Perl bindings (enquire)
rm at mh-freiburg.de
Wed Jul 20 20:34:00 BST 2005
On Wed, 2005-07-20 at 19:28 +0100, Olly Betts wrote:
> On Sat, Jul 16, 2005 at 03:46:10PM +0200, R. Mattes wrote:
> > On Fri, 15 Jul 2005 19:13:44 +0400, Pronichev Alexander wrote:
> > > You may use "replace_document" method of Xapian::WriteableDatabase,
> > > if you know document id.
> > Err, what? I _do_ intend to use replace_document -- that's what my post is
> > all about. But to _find_ the correct document id I need to query the
> > database and for _that_ I need to create an enquire ...
> You can also pass a term name to replace_document or delete_document
> instead of a document id, and any documents which are indexed by that
> term will be replaced or deleted. It was added some time ago.
Ah, ok, that's great news. So if I index an unique document ID i can
just pass that to replace document.
One more thing i observed (but it was late at night :) :
It seemed as if replace_document didn't alter the document _data_
(i.e. the fields set with set_data). Is this correct?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the Xapian-devel