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:22 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x eaf49204a -> d7fdbc48a
  refs/heads/master d276acfbb -> 98e103731


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/d7fdbc48
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/d7fdbc48
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/d7fdbc48

Branch: refs/heads/branch_6x
Commit: d7fdbc48a4f31fde34752409e541823ba2ff8f38
Parents: eaf4920
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:24:26 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/d7fdbc48/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 f905edd..36ff6db 100644
--- a/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
+++ b/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
@@ -2760,7 +2760,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']",


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

Posted by sa...@apache.org.
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']",