[
https://issues.apache.org/jira/browse/LUCENE-7548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15652963#comment-15652963
]
Erick Erickson commented on LUCENE-7548:
----------------------------------------
BTW, interestingly the /export handler _seems_ to sort in the correct order,
but /select doesn't. I admit I didn't look very closely, but thought it worth
mentioning.
> Docvalues sorting treats empty values as the default
> ----------------------------------------------------
>
> Key: LUCENE-7548
> URL: https://issues.apache.org/jira/browse/LUCENE-7548
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Erick Erickson
>
> I found this working on Solr, Mike suggested I raise it as a Lucene issue.
> This was for int fields, I'll assume the same holds for other types.
> The sort order is as though the null field was explicitly set to zero, the
> whole idea of sorting missing first is lost.
> doc1
> int_dv = 0
> int_sort = 1
> doc2
> int_sort=2
> doc3
> int_dv = 0
> int_sort=3
> sort by int_dv asc,int_sort asc gives
> doc1
> doc2
> doc3
> when it should give
> doc2
> doc1
> doc3
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]