mirror of https://github.com/apache/lucene.git
SOLR-10815: avoid long->float precision loss in 'product(-1,ms(date_field)' by subtracting a base date: 'product(-1,ms(date_field,base_date_field))'
This commit is contained in:
parent
d276acfbbc
commit
98e103731f
|
@ -2761,7 +2761,7 @@ public class TestPointFields extends SolrTestCaseJ4 {
|
|||
}
|
||||
assertU(commit());
|
||||
assertTrue(h.getCore().getLatestSchema().getField(field).getType() instanceof DatePointField);
|
||||
assertQ(req("q", "*:*", "fl", "id, " + field, "sort", "product(-1,ms(" + field + ")) asc"),
|
||||
assertQ(req("q", "*:*", "fl", "id, " + field, "sort", "product(-1,ms(" + field + "," + baseDate +")) asc"),
|
||||
"//*[@numFound='10']",
|
||||
"//result/doc[1]/date[@name='" + field + "'][.='1995-01-10T10:59:20Z']",
|
||||
"//result/doc[2]/date[@name='" + field + "'][.='1995-01-10T10:59:19Z']",
|
||||
|
|
Loading…
Reference in New Issue