[Xapian-discuss] Rqt for Features

Olly Betts olly at survex.com
Wed Aug 11 22:15:27 BST 2004


On Wed, Aug 11, 2004 at 10:04:00PM +0100, Sam Liddicott wrote:
> There is (when I last heard) no simple way to convert from such munged 
> id's back to the real id and real index.

There's no API provided for this, but it's trivial to do if you know how
many databases you're searching over:

    true_docid = (multi_docid - 1) / no_of_databases + 1;

This relies on the algorithm used to map docids not changing, but I
think it's very unlikely it would.  Still, perhaps it would be worth
adding an API method for this.

Cheers,
    Olly



More information about the Xapian-discuss mailing list