Erick Erickson created LUCENE-7548:
--------------------------------------
Summary: 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]