Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Operating System: other
Platform: Other
-
34477
Description
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)
Attachments
Attachments
Issue Links
- is cloned by
-
LUCENE-1631 CLONE -You cannot sort on fields that don't exist
- Closed
-
LUCENE-459 Warnings needed for sorting on non existant or non indexed fields
- Closed
- is related to
-
LUCENE-916 It is not possible to sort with sorttype auto on a field that does not exist
- Closed