[Xapian-discuss] sort by value fails

James Aylett james-xapian at tartarus.org
Thu Sep 11 14:47:21 BST 2008


On Thu, Sep 11, 2008 at 03:44:35PM +0200, Dr.BYTE at web.de wrote:

> thank you for your reply. if i see correctly, i will have to write a
> serializer method which converts è to e and Ö to Oe and so far.
> is it possible, that sort by value cannot sort floats correctly,
> too? i never workt with C, so i dont know how memcmp compares
> floats.

You want to serialise floats as well. There's a
serialise_double/unserialise_double pair in Xapian, but I believe it's
not accessible externally. However you could reuse the code.

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-discuss mailing list