lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject RE: Sorting in Lucene
Date Tue, 14 Mar 2006 04:49:07 GMT

: Btw, this is the statement the sort field is added to the document.
:
: 	doc.add(Field.UnIndexed("_s" + sortField, sortableData ));

Um ... only index fields are sortable ... are you sure you are sorting on
the field you think you are?

It's possible that since you are trying to sort on an UnIndexed field,
lucene is happily sorting all of them as if they have the same value (the
empty value) and you are just getting them in docid order instead.



-Hoss


---------------------------------------------------------------------
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