.desc().missing().last() / .asc().missing().first() places documents around 0 instead of last/first

Description

We use Double.MIN_VALUE/Float.MIN_VALUE as the default value for these cases, but that value is not the minimum value: it's just the lowest positive value. We should use -Double.MAX_VALUE instead.

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Fix versions

Affects versions

Priority

Major
Configure