You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2014/11/18 23:08:34 UTC
[jira] [Created] (LUCENE-6064) throw exception during sort for
misconfigured field
Robert Muir created LUCENE-6064:
-----------------------------------
Summary: 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
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org