Apache Lucene open-source search software
SOLR-10729: Deprecated LatLonType, GeoHashField, SpatialPointVectorFieldType, and SpatialTermQueryPrefixTreeFieldType
David Smiley92ed8b4220d1
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex e29952b1964..951b9d52e69 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -79,6 +79,9 @@ Upgrading from Solr 6.x* The PostingsSolrHighlighter is deprecated. Furthermore, it now internally works via a re-configurationof the UnifiedSolrHighlighter.+* Deprecated LatLonType, GeoHashField, SpatialPointVectorFieldType, and SpatialTermQueryPrefixTreeFieldType.+ Instead, switch to LatLonPointSpatialField or SpatialRecursivePrefixTreeFieldType or RptWithGeometrySpatialField.+New Features----------------------* SOLR-9857, SOLR-9858: Collect aggregated metrics from nodes and shard leaders in overseer. (ab)@@ -504,6 +507,10 @@ Other Changes* SOLR-10644: solr.in.sh installed by install script should be writable by solr user (janhoy)+* SOLR-10729: Deprecated LatLonType, GeoHashField, SpatialPointVectorFieldType, and SpatialTermQueryPrefixTreeFieldType.+ Instead, switch to LatLonPointSpatialField or SpatialRecursivePrefixTreeFieldType or RptWithGeometrySpatialField.+ (David Smiley)+================== 6.5.1 ==================Bug Fixesdiff --git a/solr/core/src/java/org/apache/solr/schema/GeoHashField.java b/solr/core/src/java/org/apache/solr/schema/GeoHashField.javaindex 3f0d765a270..842333ffc1e 100644--- a/solr/core/src/java/org/apache/solr/schema/GeoHashField.java+++ b/solr/core/src/java/org/apache/solr/schema/GeoHashField.java@@ -40,7 +40,10 @@ import org.locationtech.spatial4j.shape.Point;* This is a class that represents a <a* href="http://en.wikipedia.org/wiki/Geohash">Geohash</a> field. The field is* provided as a lat/lon pair and is internally represented as a string.+ *+ * @deprecated use {@link LatLonPointSpatialField} instead*/+@Deprecatedpublic class GeoHashField extends FieldType implements SpatialQueryable {@Overridediff --git a/solr/core/src/java/org/apache/solr/schema/LatLonType.java b/solr/core/src/java/org/apache/solr/schema/LatLonType.javaindex 8c4e19a47aa..6898369b962 100644--- a/solr/core/src/java/org/apache/solr/schema/LatLonType.java+++ b/solr/core/src/java/org/apache/solr/schema/LatLonType.java@@ -54,7 +54,10 @@ import org.locationtech.spatial4j.shape.Rectangle;/*** Represents a Latitude/Longitude as a 2 dimensional point. Latitude is <b>always</b> specified first.+ *+ * @deprecated use {@link LatLonPointSpatialField} instead*/+@Deprecatedpublic class LatLonType extends AbstractSubTypeFieldType implements SpatialQueryable {protected static final int LAT = 0;protected static final int LON = 1;diff --git a/solr/core/src/java/org/apache/solr/schema/SpatialPointVectorFieldType.java b/solr/core/src/java/org/apache/solr/schema/SpatialPointVectorFieldType.javaindex 5c7734e6b1e..ef05f18e283 100644--- a/solr/core/src/java/org/apache/solr/schema/SpatialPointVectorFieldType.java+++ b/solr/core/src/java/org/apache/solr/schema/SpatialPointVectorFieldType.java@@ -25,8 +25,9 @@ import org.apache.lucene.spatial.vector.PointVectorStrategy;/*** @see PointVectorStrategy- * @lucene.experimental+ * @deprecated use {@link LatLonPointSpatialField} instead*/+@Deprecatedpublic class SpatialPointVectorFieldType extends AbstractSpatialFieldType<PointVectorStrategy> implements SchemaAware {protected String numberFieldName = "tdouble";//in example schema defaults to non-zero precision step -- a good choicediff --git a/solr/core/src/java/org/apache/solr/schema/SpatialTermQueryPrefixTreeFieldType.java b/solr/core/src/java/org/apache/solr/schema/SpatialTermQueryPrefixTreeFieldType.javaindex 1779f01dab8..203a7b8c5ca 100644--- a/solr/core/src/java/org/apache/solr/schema/SpatialTermQueryPrefixTreeFieldType.java+++ b/solr/core/src/java/org/apache/solr/schema/SpatialTermQueryPrefixTreeFieldType.java@@ -20,8 +20,9 @@ import org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy;/*** @see TermQueryPrefixTreeStrategy- * @lucene.experimental+ * @deprecated use {@link org.apache.lucene.spatial.prefix.RecursivePrefixTreeStrategy} or {@link RptWithGeometrySpatialField}*/+@Deprecatedpublic class SpatialTermQueryPrefixTreeFieldType extends AbstractSpatialPrefixTreeFieldType<TermQueryPrefixTreeStrategy> {@Override