[ https://issues.apache.org/jira/browse/LUCENE-6064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated LUCENE-6064: -------------------------------- Attachment: LUCENE-6064.patch Attached is an initial patch: its largish because this check found numerous test bugs. > throw exception during sort for misconfigured field > --------------------------------------------------- > > Key: LUCENE-6064 > URL: https://issues.apache.org/jira/browse/LUCENE-6064 > Project: Lucene - Core > Issue Type: Bug > Reporter: Robert Muir > Attachments: LUCENE-6064.patch > > > If you sort on field X, and it has no docvalues, today it will silently treat > it as "all values missing". This can be very confusing since it just means > nothing will happen at all. > But there is a distinction between "no docs happen to have a value for this > field" and "field isn't configured correctly". The latter should get an > exception, telling the user to index docvalues, or wrap the reader with > UninvertingReader. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org