jf at dockes.org
2013-Mar-26 08:04 UTC
[Xapian-discuss] Xapian wiki: typo in docid to sub-db translation?
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
Olly Betts
2013-Mar-26 20:22 UTC
[Xapian-discuss] Xapian wiki: typo in docid to sub-db translation?
On Tue, Mar 26, 2013 at 09:04:03AM +0100, jf at dockes.org wrote:> 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;Thanks, fixed. Cheers, Olly