lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Cheung" <bob.che...@sirsidynix.com>
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
position.

Regards,
Bob

-----Original Message-----
From: Yonik Seeley [mailto:yseeley@gmail.com] 
Sent: Tuesday, March 14, 2006 11:04 AM
To: java-user@lucene.apache.org
Subject: Re: Sorting in Lucene

On 3/13/06, Bob Cheung <bob.cheung@sirsidynix.com> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message