[Xapian-discuss] Xapian wiki: typo in docid to sub-db translation?

jf at dockes.org jf at dockes.org
Tue Mar 26 08:04:03 GMT 2013


On the Xapian wiki page:
   http://trac.xapian.org/wiki/FAQ/MultiDatabaseDocumentID

It seems to me that:
  subdatabase_number = docid_combined % number_of_databases; 

Should read:
  subdatabase_number = (docid_combined - 1) % number_of_databases; 

Otherwise I'm seriously confused ...

Cheers,

jf



More information about the Xapian-discuss mailing list