[Xapian-discuss] Search::Xapian add_database'd search results are
odd?
Olly Betts
olly at survex.com
Tue Dec 21 23:00:41 GMT 2004
On Tue, Dec 21, 2004 at 02:46:46PM -0800, Eric Parusel wrote:
> Hmm, ok, for me it's the docid's themselves that are important.
> If the offset value is within range, I suppose I can't easily reverse
> the equation to get out the original docid value, right?
It's easy - just:
did_raw = (did_merged - 1) / number_of_databases + 1
offset = did_merged % number_of_databases
where % is modulus (like in C).
Cheers,
Olly
More information about the Xapian-discuss
mailing list