You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2014/11/18 23:50:34 UTC

[jira] [Commented] (LUCENE-6064) throw exception during sort for misconfigured field

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org