[Xapian-discuss] sort by value fails

Dr.BYTE at web.de Dr.BYTE at web.de
Thu Sep 11 14:44:35 BST 2008


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.

regards,
sven

Olly Betts <olly at survex.com> schrieb am 11.09.2008 15:28:15:
> On Tue, Sep 09, 2008 at 05:54:17PM +0200, Dr.BYTE at web.de wrote:
> > i want use sort_by_value to sort by "username". 
> > so in the indexing process i add the value i want sort by as value
> > 
> > (lang is php)
> > 
> > $document->add_value(0, 'value');
> > 
> > when i sort i got all specialchars at the beginning
> 
> Sort by value uses a simple byte-value comparison (like the C function
> memcmp()) - it doesn't implement any sort of language-specific collating
> orders.  So it sounds to me like this is working as intended.
> 
> If you want (for example) accented and non accented versions of a letter
> to sort adjacently, you might want to consider transforming the values
> so that they sort in the desired order.
> 
> Cheers,
>     Olly
> 
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss
> 
_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220




More information about the Xapian-discuss mailing list