lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Cheung" <>
Subject RE: Sorting in Lucene
Date Tue, 14 Mar 2006 04:40:49 GMT
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


-----Original Message-----
From: Yonik Seeley [] 
Sent: Tuesday, March 14, 2006 11:04 AM
Subject: Re: Sorting in Lucene

On 3/13/06, Bob Cheung <> 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 Solr, The Open Source Lucene Search

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message