DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=34477>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34477 Summary: You cannot sort on fields that don't exist Product: Lucene Version: CVS Nightly - Specify date in submission Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Search AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] While it's possible to search for fields that don't exist (you'll get 0 hits), you'll get an exception if you try to sort by a field that has no values. The exception is this: if (termEnum.term() == null) { throw new RuntimeException ("no terms in field " + field); } I'll attach a change suggested by Yonik Seeley that removes this exception. Also, the if-condition above is incomplete anyway, so currently the exception is not always thrown (as termEnum .term() might well be != null but point to a term in a different field already) -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
