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) ?
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