Ted Jordan
2006-Jan-04 04:59 UTC
[Xapian-discuss] xapian_doc_id doubles if you search more than one database
I noticed that if you search two databases then $xapian_doc_id = MSetIterator_get_docid($mseti); returns the wrong doc_id (exactly double the real doc_id). Example: I had a document in one database with doc_id = 312. It only exists in the one database. But when I do a search through two databases it finds the one and only document (as expected) but reports the doc_id as 624. Regards, -Ted.
Olly Betts
2006-Jan-04 05:10 UTC
[Xapian-discuss] xapian_doc_id doubles if you search more than one database
On Wed, Jan 04, 2006 at 04:59:16AM +0000, Ted Jordan wrote:> I noticed that if you search two databases then > > $xapian_doc_id = MSetIterator_get_docid($mseti); > > returns the wrong doc_id (exactly double the real doc_id).When searching more than one database, the document ids used by the Xapian::Database object are mapped to avoid collisions (since both databases might have a document with docid 1, etc). This thread has all the details: http://thread.gmane.org/gmane.comp.search.xapian.general/1369 Cheers, Olly