Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#36 closed enhancement (released)

Modify replace_document to accept non-existing docid

Reported by: Tim Brody Owned by: Olly Betts
Priority: normal Milestone:
Component: Library API Version: 0.8.1
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description

By modifying replace_document to add a document using the given docid, if that docid does not exist, the user can control the docids used by Xapian negating the need to store a unique term with each document. i.e. change replace_document to reflect the behaviour in SQL's REPLACE.

Where this would break (Richard Boulton): "Also, if you combine databases together using Xapian's multidatabase facility, the Xapian docids will change (an interleaving scheme is used to disambiguate document identifiers document), which could break software which relies on the document identifiers being tied more closely to the contents of the document."

Change History (3)

comment:1 by Olly Betts, 20 years ago

Status: newassigned

comment:2 by Olly Betts, 20 years ago

Resolution: fixed
Status: assignedclosed

Now implemented in CVS HEAD

comment:3 by Olly Betts, 20 years ago

Operating System: All
Resolution: fixedreleased

Fixed in 0.8.2

Note: See TracTickets for help on using tickets.