[ 
https://issues.apache.org/jira/browse/LUCENE-6064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14216974#comment-14216974
 ] 

Adrien Grand commented on LUCENE-6064:
--------------------------------------

+1

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to