This is the reason this works unexpected for you. "20.04" is not a valid version according to Semver (www.semver.org). Leading zeros are not allowed in major, minor or patch. We chose to treat "shorter" version string that otherwise satisfy the Semver definition as "valid" (that is why 79.4 an 20.4 are treated as valid).
The docs state that we accept "invalid" versions such as "20.04" at index time. This is done to make it possible for users of the old "keyword" field that used to be used a lot for version data can transition to the new field type without disruption. However, "invalid" versions will be sorted after all valid ones, hence "79.4" < "20.04" here.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.