Apache Lucene open-source search software
LUCENE-6997: refactor GeoPointField and query classes from lucene.spatial to lucene.spatial.geopoint package
nknize7d8f0127b7e8
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex e86b0aecada..54124dfd928 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -149,7 +149,7 @@ New FeaturesAPI Changes* LUCENE-6997: refactor sandboxed GeoPointField and query classes to lucene-spatial- module (Nick Knize)+ module under new lucene.spatial.geopoint package (Nick Knize)* LUCENE-6908: GeoUtils static relational methods have been refactored to newGeoRelationUtils and now correctly handle large irregular rectangles, anddiff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/document/GeoPointField.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/document/GeoPointField.javasimilarity index 97%rename from lucene/spatial/src/java/org/apache/lucene/spatial/document/GeoPointField.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/document/GeoPointField.javaindex cafa67ce2c1..39f12dfd9bc 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/document/GeoPointField.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/document/GeoPointField.java@@ -14,7 +14,7 @@* See the License for the specific language governing permissions and* limitations under the License.*/-package org.apache.lucene.spatial.document;+package org.apache.lucene.spatial.geopoint.document;import org.apache.lucene.document.Field;import org.apache.lucene.document.FieldType;@@ -36,8 +36,8 @@ import org.apache.lucene.spatial.util.GeoEncodingUtils;* </pre>** <p>To perform simple geospatial queries against a <code>GeoPointField</code>,- * see {@link org.apache.lucene.spatial.search.GeoPointInBBoxQuery}, {@link org.apache.lucene.spatial.search.GeoPointInPolygonQuery},- * or {@link org.apache.lucene.spatial.search.GeoPointDistanceQuery}+ * see {@link org.apache.lucene.spatial.geopoint.search.GeoPointInBBoxQuery}, {@link org.apache.lucene.spatial.geopoint.search.GeoPointInPolygonQuery},+ * or {@link org.apache.lucene.spatial.geopoint.search.GeoPointDistanceQuery}** NOTE: This indexes only high precision encoded terms which may result in visiting a high number* of terms for large queries. See LUCENE-6481 for a future improvement.diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/document/GeoPointTokenStream.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/document/GeoPointTokenStream.javasimilarity index 98%rename from lucene/spatial/src/java/org/apache/lucene/spatial/document/GeoPointTokenStream.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/document/GeoPointTokenStream.javaindex ff97fee6437..4a70ea3ac5d 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/document/GeoPointTokenStream.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/document/GeoPointTokenStream.java@@ -1,4 +1,4 @@-package org.apache.lucene.spatial.document;+package org.apache.lucene.spatial.geopoint.document;/** Licensed to the Apache Software Foundation (ASF) under one or more@@ -31,7 +31,7 @@ import org.apache.lucene.util.BytesRef;import org.apache.lucene.util.BytesRefBuilder;import org.apache.lucene.spatial.util.GeoEncodingUtils;-import static org.apache.lucene.spatial.document.GeoPointField.PRECISION_STEP;+import static org.apache.lucene.spatial.geopoint.document.GeoPointField.PRECISION_STEP;/*** <b>Expert:</b> This class provides a {@link TokenStream} used by {@link GeoPointField}diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/document/package-info.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/document/package-info.javasimilarity index 94%rename from lucene/spatial/src/java/org/apache/lucene/spatial/document/package-info.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/document/package-info.javaindex 2550fa1d27f..2d2344849ee 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/document/package-info.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/document/package-info.java@@ -18,4 +18,4 @@/*** Geospatial Field Implementations for Core Lucene*/-package org.apache.lucene.spatial.document;\ No newline at end of file+package org.apache.lucene.spatial.geopoint.document;\ No newline at end of filediff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoBoundingBox.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoBoundingBox.javasimilarity index 97%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoBoundingBox.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoBoundingBox.javaindex f26f8b1a3e3..8f30f604919 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoBoundingBox.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoBoundingBox.java@@ -14,7 +14,7 @@* See the License for the specific language governing permissions and* limitations under the License.*/-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;import org.apache.lucene.spatial.util.GeoUtils;diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointDistanceQuery.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointDistanceQuery.javasimilarity index 97%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointDistanceQuery.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointDistanceQuery.javaindex 24b7f8f6dcd..bd3dbdd5455 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointDistanceQuery.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointDistanceQuery.java@@ -14,13 +14,13 @@* See the License for the specific language governing permissions and* limitations under the License.*/-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;import org.apache.lucene.index.IndexReader;import org.apache.lucene.search.BooleanClause;import org.apache.lucene.search.BooleanQuery;import org.apache.lucene.search.Query;-import org.apache.lucene.spatial.document.GeoPointField.TermEncoding;+import org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding;import org.apache.lucene.spatial.util.GeoDistanceUtils;import org.apache.lucene.spatial.util.GeoRect;import org.apache.lucene.spatial.util.GeoUtils;@@ -50,7 +50,7 @@ public class GeoPointDistanceQuery extends GeoPointInBBoxQuery {protected final double radiusMeters;/**- * Constructs a Query for all {@link org.apache.lucene.spatial.document.GeoPointField} types within a+ * Constructs a Query for all {@link org.apache.lucene.spatial.geopoint.document.GeoPointField} types within a* distance (in meters) from a given point**/public GeoPointDistanceQuery(final String field, final double centerLon, final double centerLat, final double radiusMeters) {diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointDistanceQueryImpl.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointDistanceQueryImpl.javasimilarity index 96%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointDistanceQueryImpl.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointDistanceQueryImpl.javaindex 39fc6969711..f091bcb85ec 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointDistanceQueryImpl.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointDistanceQueryImpl.java@@ -14,10 +14,10 @@* See the License for the specific language governing permissions and* limitations under the License.*/-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;import org.apache.lucene.search.MultiTermQuery;-import org.apache.lucene.spatial.document.GeoPointField.TermEncoding;+import org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding;import org.apache.lucene.spatial.util.GeoRect;import org.apache.lucene.spatial.util.GeoRelationUtils;import org.apache.lucene.util.SloppyMath;diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointDistanceRangeQuery.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointDistanceRangeQuery.javasimilarity index 93%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointDistanceRangeQuery.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointDistanceRangeQuery.javaindex eefdc79c29b..e7faccb932c 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointDistanceRangeQuery.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointDistanceRangeQuery.java@@ -14,16 +14,16 @@* See the License for the specific language governing permissions and* limitations under the License.*/-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;import org.apache.lucene.index.IndexReader;import org.apache.lucene.search.BooleanClause;import org.apache.lucene.search.BooleanQuery;import org.apache.lucene.search.Query;-import org.apache.lucene.spatial.document.GeoPointField.TermEncoding;+import org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding;/** Implements a point distance range query on a GeoPoint field. This is based on- * {@code org.apache.lucene.spatial.search.GeoPointDistanceQuery} and is implemented using a+ * {@code org.apache.lucene.spatial.geopoint.search.GeoPointDistanceQuery} and is implemented using a* {@code org.apache.lucene.search.BooleanClause.MUST_NOT} clause to exclude any points that fall within* minRadiusMeters from the provided point.*@@ -33,7 +33,7 @@ public final class GeoPointDistanceRangeQuery extends GeoPointDistanceQuery {protected final double minRadiusMeters;/**- * Constructs a query for all {@link org.apache.lucene.spatial.document.GeoPointField} types within a minimum / maximum+ * Constructs a query for all {@link org.apache.lucene.spatial.geopoint.document.GeoPointField} types within a minimum / maximum* distance (in meters) range from a given point*/public GeoPointDistanceRangeQuery(final String field, final double centerLon, final double centerLat,diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointInBBoxQuery.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointInBBoxQuery.javasimilarity index 97%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointInBBoxQuery.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointInBBoxQuery.javaindex 0e6d5bfbc37..64e8f76a512 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointInBBoxQuery.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointInBBoxQuery.java@@ -14,7 +14,7 @@* See the License for the specific language governing permissions and* limitations under the License.*/-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;import org.apache.lucene.index.IndexReader;import org.apache.lucene.search.BooleanClause;@@ -22,7 +22,7 @@ import org.apache.lucene.search.BooleanQuery;import org.apache.lucene.search.FieldValueQuery;import org.apache.lucene.search.LegacyNumericRangeQuery;import org.apache.lucene.search.Query;-import org.apache.lucene.spatial.document.GeoPointField.TermEncoding;+import org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding;import org.apache.lucene.spatial.util.GeoUtils;/** Implements a simple bounding box query on a GeoPoint field. This is inspired by@@ -53,7 +53,7 @@ public class GeoPointInBBoxQuery extends Query {protected final TermEncoding termEncoding;/**- * Constructs a query for all {@link org.apache.lucene.spatial.document.GeoPointField} types that fall within a+ * Constructs a query for all {@link org.apache.lucene.spatial.geopoint.document.GeoPointField} types that fall within a* defined bounding box*/public GeoPointInBBoxQuery(final String field, final double minLon, final double minLat, final double maxLon, final double maxLat) {diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointInBBoxQueryImpl.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointInBBoxQueryImpl.javasimilarity index 96%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointInBBoxQueryImpl.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointInBBoxQueryImpl.javaindex 8bce0f03f62..675b2a164cd 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointInBBoxQueryImpl.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointInBBoxQueryImpl.java@@ -14,12 +14,12 @@* See the License for the specific language governing permissions and* limitations under the License.*/-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;import org.apache.lucene.search.MultiTermQuery;import org.apache.lucene.util.SloppyMath;-import org.apache.lucene.spatial.document.GeoPointField;-import org.apache.lucene.spatial.document.GeoPointField.TermEncoding;+import org.apache.lucene.spatial.geopoint.document.GeoPointField;+import org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding;import org.apache.lucene.spatial.util.GeoRelationUtils;/** Package private implementation for the public facing GeoPointInBBoxQuery delegate class.diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointInPolygonQuery.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointInPolygonQuery.javasimilarity index 96%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointInPolygonQuery.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointInPolygonQuery.javaindex eb8c50c38ed..6b0d4dd2e92 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointInPolygonQuery.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointInPolygonQuery.java@@ -14,13 +14,13 @@* See the License for the specific language governing permissions and* limitations under the License.*/-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;import java.util.Arrays;import org.apache.lucene.index.IndexReader;import org.apache.lucene.search.Query;-import org.apache.lucene.spatial.document.GeoPointField.TermEncoding;+import org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding;import org.apache.lucene.spatial.util.GeoEncodingUtils;import org.apache.lucene.spatial.util.GeoRect;import org.apache.lucene.spatial.util.GeoUtils;@@ -55,7 +55,7 @@ public final class GeoPointInPolygonQuery extends GeoPointInBBoxQuery {}/**- * Constructs a new GeoPolygonQuery that will match encoded {@link org.apache.lucene.spatial.document.GeoPointField} terms+ * Constructs a new GeoPolygonQuery that will match encoded {@link org.apache.lucene.spatial.geopoint.document.GeoPointField} terms* that fall within or on the boundary of the polygon defined by the input parameters.*/public GeoPointInPolygonQuery(final String field, final TermEncoding termEncoding, final double[] polyLons, final double[] polyLats) {diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointInPolygonQueryImpl.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointInPolygonQueryImpl.javasimilarity index 91%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointInPolygonQueryImpl.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointInPolygonQueryImpl.javaindex f0fe87b3cb1..35a39508702 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointInPolygonQueryImpl.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointInPolygonQueryImpl.java@@ -14,10 +14,10 @@* See the License for the specific language governing permissions and* limitations under the License.*/-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;import org.apache.lucene.search.MultiTermQuery;-import org.apache.lucene.spatial.document.GeoPointField.TermEncoding;+import org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding;import org.apache.lucene.spatial.util.GeoRelationUtils;/** Package private implementation for the public facing GeoPointInPolygonQuery delegate class.@@ -44,7 +44,7 @@ final class GeoPointInPolygonQueryImpl extends GeoPointInBBoxQueryImpl {}/**- * Custom {@code org.apache.lucene.spatial.search.GeoPointMultiTermQuery.CellComparator} that computes morton hash+ * Custom {@code org.apache.lucene.spatial.geopoint.search.GeoPointMultiTermQuery.CellComparator} that computes morton hash* ranges based on the defined edges of the provided polygon.*/private final class GeoPolygonCellComparator extends CellComparator {@@ -72,7 +72,7 @@ final class GeoPointInPolygonQueryImpl extends GeoPointInBBoxQueryImpl {/*** The two-phase query approach. The parent- * {@link org.apache.lucene.spatial.search.GeoPointTermsEnum#accept} method is called to match+ * {@link org.apache.lucene.spatial.geopoint.search.GeoPointTermsEnum#accept} method is called to match* encoded terms that fall within the bounding box of the polygon. Those documents that pass the initial* bounding box filter are then compared to the provided polygon using the* {@link org.apache.lucene.spatial.util.GeoRelationUtils#pointInPolygon} method.diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointMultiTermQuery.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointMultiTermQuery.javasimilarity index 96%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointMultiTermQuery.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointMultiTermQuery.javaindex f11c4a6c8a6..b83d68059ca 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointMultiTermQuery.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointMultiTermQuery.java@@ -1,4 +1,4 @@-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;/** Licensed to the Apache Software Foundation (ASF) under one or more@@ -25,8 +25,8 @@ import org.apache.lucene.index.TermsEnum;import org.apache.lucene.search.MultiTermQuery;import org.apache.lucene.search.Query;import org.apache.lucene.util.AttributeSource;-import org.apache.lucene.spatial.document.GeoPointField;-import org.apache.lucene.spatial.document.GeoPointField.TermEncoding;+import org.apache.lucene.spatial.geopoint.document.GeoPointField;+import org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding;import org.apache.lucene.spatial.util.GeoEncodingUtils;import org.apache.lucene.spatial.util.GeoRelationUtils;import org.apache.lucene.spatial.util.GeoUtils;diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointNumericTermsEnum.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointNumericTermsEnum.javasimilarity index 96%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointNumericTermsEnum.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointNumericTermsEnum.javaindex adfb6a0daea..120df7d2ec8 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointNumericTermsEnum.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointNumericTermsEnum.java@@ -1,4 +1,4 @@-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;/** Licensed to the Apache Software Foundation (ASF) under one or more@@ -22,7 +22,7 @@ import java.util.LinkedList;import java.util.List;import org.apache.lucene.index.TermsEnum;-import org.apache.lucene.spatial.document.GeoPointField;+import org.apache.lucene.spatial.geopoint.document.GeoPointField;import org.apache.lucene.spatial.util.GeoEncodingUtils;import org.apache.lucene.util.BytesRef;import org.apache.lucene.util.BytesRefBuilder;@@ -30,7 +30,7 @@ import org.apache.lucene.util.LegacyNumericUtils;/*** Decomposes a given {@link GeoPointMultiTermQuery} into a set of terms that represent the query criteria using- * {@link org.apache.lucene.spatial.document.GeoPointField.TermEncoding#NUMERIC} method defined by+ * {@link org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding#NUMERIC} method defined by* {@link org.apache.lucene.analysis.LegacyNumericTokenStream}. The terms are then enumerated by the* {@link GeoPointTermQueryConstantScoreWrapper} and all docs whose GeoPoint fields match the prefix terms or* pass the {@link GeoPointMultiTermQuery.CellComparator#postFilter} criteria are returned in the resulting DocIdSet.diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointPrefixTermsEnum.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointPrefixTermsEnum.javasimilarity index 97%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointPrefixTermsEnum.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointPrefixTermsEnum.javaindex d08cd9863de..fbaf68e462a 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointPrefixTermsEnum.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointPrefixTermsEnum.java@@ -1,4 +1,4 @@-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;/** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,7 +20,7 @@ package org.apache.lucene.spatial.search;import org.apache.lucene.index.TermsEnum;import org.apache.lucene.util.BytesRef;import org.apache.lucene.util.BytesRefBuilder;-import org.apache.lucene.spatial.document.GeoPointField;+import org.apache.lucene.spatial.geopoint.document.GeoPointField;import org.apache.lucene.spatial.util.GeoEncodingUtils;import static org.apache.lucene.spatial.util.GeoEncodingUtils.mortonHash;@@ -32,7 +32,7 @@ import static org.apache.lucene.spatial.util.GeoEncodingUtils.getPrefixCodedShif/*** Decomposes a given {@link GeoPointMultiTermQuery} into a set of terms that represent the query criteria using- * {@link org.apache.lucene.spatial.document.GeoPointField.TermEncoding#PREFIX} method defined by+ * {@link org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding#PREFIX} method defined by* {@link GeoPointField}. The terms are then enumerated by the* {@link GeoPointTermQueryConstantScoreWrapper} and all docs whose GeoPoint fields match the prefix terms or pass* the {@link GeoPointMultiTermQuery.CellComparator#postFilter} criteria are returned in thediff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointTermQueryConstantScoreWrapper.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointTermQueryConstantScoreWrapper.javasimilarity index 99%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointTermQueryConstantScoreWrapper.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointTermQueryConstantScoreWrapper.javaindex 46a17833e32..c8d3e553901 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointTermQueryConstantScoreWrapper.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointTermQueryConstantScoreWrapper.java@@ -14,7 +14,7 @@* See the License for the specific language governing permissions and* limitations under the License.*/-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;import java.io.IOException;diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointTermsEnum.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointTermsEnum.javasimilarity index 95%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointTermsEnum.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointTermsEnum.javaindex 626003ac82e..9f9e251bf20 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/GeoPointTermsEnum.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/GeoPointTermsEnum.java@@ -14,14 +14,14 @@* See the License for the specific language governing permissions and* limitations under the License.*/-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;import org.apache.lucene.index.FilteredTermsEnum;import org.apache.lucene.index.TermsEnum;import org.apache.lucene.util.BytesRef;import org.apache.lucene.util.BytesRefBuilder;-import org.apache.lucene.spatial.document.GeoPointField.TermEncoding;-import org.apache.lucene.spatial.search.GeoPointMultiTermQuery.CellComparator;+import org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding;+import org.apache.lucene.spatial.geopoint.search.GeoPointMultiTermQuery.CellComparator;/*** Base class for {@link GeoPointNumericTermsEnum} and {@link GeoPointPrefixTermsEnum} which comparesdiff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/search/package-info.java b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/package-info.javasimilarity index 94%rename from lucene/spatial/src/java/org/apache/lucene/spatial/search/package-info.javarename to lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/package-info.javaindex 8e8265c8546..0d923df5e0c 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/search/package-info.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/geopoint/search/package-info.java@@ -18,4 +18,4 @@/*** Geospatial Query Implementations for Core Lucene*/-package org.apache.lucene.spatial.search;\ No newline at end of file+package org.apache.lucene.spatial.geopoint.search;\ No newline at end of filediff --git a/lucene/spatial/src/test/org/apache/lucene/spatial/search/TestGeoPointQuery.java b/lucene/spatial/src/test/org/apache/lucene/spatial/geopoint/search/TestGeoPointQuery.javasimilarity index 98%rename from lucene/spatial/src/test/org/apache/lucene/spatial/search/TestGeoPointQuery.javarename to lucene/spatial/src/test/org/apache/lucene/spatial/geopoint/search/TestGeoPointQuery.javaindex 0a353bba9b5..bdc4d864011 100644--- a/lucene/spatial/src/test/org/apache/lucene/spatial/search/TestGeoPointQuery.java+++ b/lucene/spatial/src/test/org/apache/lucene/spatial/geopoint/search/TestGeoPointQuery.java@@ -14,7 +14,7 @@* See the License for the specific language governing permissions and* limitations under the License.*/-package org.apache.lucene.spatial.search;+package org.apache.lucene.spatial.geopoint.search;import org.apache.lucene.analysis.MockAnalyzer;import org.apache.lucene.document.Document;@@ -28,8 +28,8 @@ import org.apache.lucene.search.Query;import org.apache.lucene.search.TopDocs;import org.apache.lucene.store.Directory;import org.apache.lucene.spatial.util.GeoEncodingUtils;-import org.apache.lucene.spatial.document.GeoPointField;-import org.apache.lucene.spatial.document.GeoPointField.TermEncoding;+import org.apache.lucene.spatial.geopoint.document.GeoPointField;+import org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding;import org.apache.lucene.spatial.util.BaseGeoPointTestCase;import org.apache.lucene.spatial.util.GeoRect;import org.apache.lucene.spatial.util.GeoRelationUtils;diff --git a/lucene/spatial/src/test/org/apache/lucene/spatial/util/BaseGeoPointTestCase.java b/lucene/spatial/src/test/org/apache/lucene/spatial/util/BaseGeoPointTestCase.javaindex aa1da819f49..f8f00e7e7da 100644--- a/lucene/spatial/src/test/org/apache/lucene/spatial/util/BaseGeoPointTestCase.java+++ b/lucene/spatial/src/test/org/apache/lucene/spatial/util/BaseGeoPointTestCase.java@@ -44,7 +44,6 @@ import org.apache.lucene.search.IndexSearcher;import org.apache.lucene.search.Query;import org.apache.lucene.search.SimpleCollector;import org.apache.lucene.store.Directory;-import org.apache.lucene.store.MockDirectoryWrapper;import org.apache.lucene.util.FixedBitSet;import org.apache.lucene.util.IOUtils;import org.apache.lucene.util.LuceneTestCase;