You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Florian Sauvin <fl...@archive.org> on 2004/07/21 02:13:29 UTC
Sorting on tokenized fields
I see in the Javadoc that it is only possible to sort on fields that
are not tokenized, I have two questions about that:
1) What happens if the field is tokenized, is sorting done anyway,
using the first term only?
2) Is there a way to do some sorting anyway, by concatenating all the
tokens into one string?
--
Florian
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
RE: Sorting on tokenized fields
Posted by Aviran <am...@infosciences.com>.
You can create a new field which contains the full untokened string and use
it as a sort field.
-----Original Message-----
From: Florian Sauvin [mailto:florian@archive.org]
Sent: Tuesday, July 20, 2004 20:13 PM
To: Lucene Users List
Subject: Sorting on tokenized fields
I see in the Javadoc that it is only possible to sort on fields that
are not tokenized, I have two questions about that:
1) What happens if the field is tokenized, is sorting done anyway,
using the first term only?
2) Is there a way to do some sorting anyway, by concatenating all the
tokens into one string?
--
Florian
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org