SOLR-10729: Deprecated LatLonType, GeoHashField, SpatialPointVectorFieldType, and SpatialTermQueryPrefixTreeFieldType

This commit is contained in:
David Smiley 2017-05-23 11:09:32 -04:00
parent 2218ded2af
commit 92ed8b4220
5 changed files with 17 additions and 2 deletions

View File

@ -79,6 +79,9 @@ Upgrading from Solr 6.x
* The PostingsSolrHighlighter is deprecated. Furthermore, it now internally works via a re-configuration
of 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 Fixes

View File

@ -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
*/
@Deprecated
public class GeoHashField extends FieldType implements SpatialQueryable {
@Override

View File

@ -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
*/
@Deprecated
public class LatLonType extends AbstractSubTypeFieldType implements SpatialQueryable {
protected static final int LAT = 0;
protected static final int LON = 1;

View File

@ -25,8 +25,9 @@ import org.apache.lucene.spatial.vector.PointVectorStrategy;
/**
* @see PointVectorStrategy
* @lucene.experimental
* @deprecated use {@link LatLonPointSpatialField} instead
*/
@Deprecated
public class SpatialPointVectorFieldType extends AbstractSpatialFieldType<PointVectorStrategy> implements SchemaAware {
protected String numberFieldName = "tdouble";//in example schema defaults to non-zero precision step -- a good choice

View File

@ -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}
*/
@Deprecated
public class SpatialTermQueryPrefixTreeFieldType extends AbstractSpatialPrefixTreeFieldType<TermQueryPrefixTreeStrategy> {
@Override