I'm pretty sure. The other characters sorted according to the ASCII
sequence. It's only the slash sorted before the space. That's why I
wonder whether slash is treated differently.
Btw, this is the statement the sort field is added to the document.
doc.add(Field.UnIndexed("_s" + sortField, sortableData ));
While I was debugging this statement using Eclipse, I could see what was
in sortableData. One had "/" and the other a space in the same
position.
Regards,
Bob
-----Original Message-----
From: Yonik Seeley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 14, 2006 11:04 AM
To: [email protected]
Subject: Re: Sorting in Lucene
On 3/13/06, Bob Cheung <[EMAIL PROTECTED]> wrote:
> I am curious why the character "/" sorts before the space.
>
> For example,
>
> Apple/banana is good for you.
>
> Sorts before
>
> Apple banana is good for you
Are you sure that the field is untokenized, and that you are sorting
in the correct direction?
-Yonik
http://incubator.apache.org/solr Solr, The Open Source Lucene Search
Server
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]