[Xapian-discuss] sort by value fails
Olly Betts
olly at survex.com
Thu Sep 11 14:23:59 BST 2008
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
More information about the Xapian-discuss
mailing list