[Xapian-discuss] xapian_doc_id doubles if you search more than one database

Olly Betts olly at survex.com
Wed Jan 4 05:10:31 GMT 2006


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



More information about the Xapian-discuss mailing list