[Xapian-discuss] Replacing with an empty Document
Richard Boulton
richard at tartarus.org
Tue Nov 1 07:51:22 GMT 2011
On 1 November 2011 06:08, Liam <xapian at networkimprov.net> wrote:
> What is the effect of
>
> WritableDatabase db(...);
> db.replace_document(some_id, Document()); // provide empty document
>
> is it equivalent to db.delete_document(some_id) ?
No, it will store a document which has no terms, document data or
values at the specified ID. Such a document could be returned by a
search (for example, by a MatchAll search).
--
Richard
More information about the Xapian-discuss
mailing list