Per Jessen
2010-Oct-22 08:32 UTC
[Xapian-discuss] overlapping docids when searching on multiple databases?
Just a quick question - it seems to me that it's entirely possible to get overlapping docids when searching on multiple databases? For instance: open database1 add database2 to database1 search db1+db2 if docid 10 exists in both databases, is there any way of telling which which database to retrieve the document from? /Per Jessen, Z?rich
Richard Boulton
2010-Oct-22 09:20 UTC
[Xapian-discuss] overlapping docids when searching on multiple databases?
On 22 October 2010 09:32, Per Jessen <per at computer.org> wrote:> Just a quick question - it seems to me that it's entirely possible to > get overlapping docids when searching on multiple databases? ?For > instance:This doesn't happen, because the document IDs presented by a multi-database are formed by interleaving the document IDs from the sub-databases. In your example, you'll be able to access one of the documents as docid 19, and one as docid 20. For details of how to convert from the docid in a multi database to the docid in the sub-database, see: http://trac.xapian.org/wiki/FAQ/MultiDatabaseDocumentID -- Celestial Navigation Limited, incorporated in England & Wales (registration number 06978117), registered office address: 58 Kingsway, Duxford, Cambridgeshire, CB224QN, UK.