Lucene sorting is intended to sort documents relative to each other.
So it makes no sense to allow sorts on tokenized fields in the
Lucene context. Imagine the separate tokens in a field for doc1 of
a, c and e, and for doc2 b, d and f. Where should doc1 go in
relation to doc2 when sorting on that field? There's no good
*general* answer that I've been able to see.

So I suspect you really want to do something that's not
document sorting, and if you'd make a clearer statement of
what you're trying to accomplish I'm sure you'd get better
answers than mine.

Best
Erick

On 4/10/07, Joe Tang <[EMAIL PROTECTED]> wrote:


My task is to index lots of documents with different fields. Some of the
fields are tokenized and are going to be sorted later on when a list of
result set is need to particular field. Unfortunately, Lucene complains
about sort on a tokenized field.

So is there any way to get around of it?

Thanks in advance!!
--
View this message in context:
http://www.nabble.com/How-to-sort-on-a-tokenised-field--tf3555450.html#a9927597
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to