You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2016/01/24 22:51:47 UTC

[1/2] lucene-solr git commit: revert this est change until we can fix geo API border cases (LUCENE-6956)

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_5x 6df206a51 -> 51396b8cf


revert this est change until we can fix geo API border cases (LUCENE-6956)


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

Branch: refs/heads/branch_5x
Commit: 5319ca611a7dabc07d23a63555ff2df39596d00e
Parents: 104f7c9
Author: Michael McCandless <ma...@mikemccandless.com>
Authored: Sun Jan 24 16:48:51 2016 -0500
Committer: Mike McCandless <mi...@apache.org>
Committed: Sun Jan 24 16:49:57 2016 -0500

----------------------------------------------------------------------
 .../src/test/org/apache/lucene/util/BaseGeoPointTestCase.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5319ca61/lucene/sandbox/src/test/org/apache/lucene/util/BaseGeoPointTestCase.java
----------------------------------------------------------------------
diff --git a/lucene/sandbox/src/test/org/apache/lucene/util/BaseGeoPointTestCase.java b/lucene/sandbox/src/test/org/apache/lucene/util/BaseGeoPointTestCase.java
index 96e0180..6c1258a 100644
--- a/lucene/sandbox/src/test/org/apache/lucene/util/BaseGeoPointTestCase.java
+++ b/lucene/sandbox/src/test/org/apache/lucene/util/BaseGeoPointTestCase.java
@@ -422,7 +422,8 @@ public abstract class BaseGeoPointTestCase extends LuceneTestCase {
     } else {
       result = -90 + 180.0 * random().nextDouble();
     }
-    return result;
+    // TODO: we should not do this here!  it weakens the test, and users don't pre-quantize the lat/lons they send us:
+    return unscaleLat(scaleLat(result));
   }
 
   public double randomLon(boolean small) {
@@ -432,7 +433,8 @@ public abstract class BaseGeoPointTestCase extends LuceneTestCase {
     } else {
       result = -180 + 360.0 * random().nextDouble();
     }
-    return result;
+    // TODO: we should not do this here!  it weakens the test, and users don't pre-quantize the lat/lons they send us:
+    return unscaleLon(scaleLon(result));
   }
 
   protected GeoRect randomRect(boolean small, boolean canCrossDateLine) {


[2/2] lucene-solr git commit: merged

Posted by mi...@apache.org.
merged


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

Branch: refs/heads/branch_5x
Commit: 51396b8cf63fd7c77d005d10803ae953acfe659f
Parents: 5319ca6 6df206a
Author: Michael McCandless <ma...@mikemccandless.com>
Authored: Sun Jan 24 16:51:39 2016 -0500
Committer: Mike McCandless <mi...@apache.org>
Committed: Sun Jan 24 16:51:39 2016 -0500

----------------------------------------------------------------------
 build.xml | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 70 insertions(+), 5 deletions(-)
----------------------------------------------------------------------