You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2017/06/06 18:27:23 UTC

[2/2] lucene-solr:master: 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))'

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))'


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/98e10373
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/98e10373
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/98e10373

Branch: refs/heads/master
Commit: 98e103731f15782e9d0c67b3998216801d2164a1
Parents: d276acf
Author: Steve Rowe <sa...@gmail.com>
Authored: Tue Jun 6 14:23:51 2017 -0400
Committer: Steve Rowe <sa...@gmail.com>
Committed: Tue Jun 6 14:25:37 2017 -0400

----------------------------------------------------------------------
 solr/core/src/test/org/apache/solr/schema/TestPointFields.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/98e10373/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/schema/TestPointFields.java b/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
index 02d2ac2..b93b260 100644
--- a/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
+++ b/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
@@ -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']",