use of org.apache.solr.legacy.PointVectorStrategy in project lucene-solr by apache.
the class SpatialPointVectorFieldType method newSpatialStrategy.
@Override
protected PointVectorStrategy newSpatialStrategy(String fieldName) {
// TODO update to how BBoxField does things
if (this.getNumberType() != null) {
// create strategy based on legacy numerics
// todo remove in 7.0
LegacyFieldType fieldType = new LegacyFieldType(PointVectorStrategy.LEGACY_FIELDTYPE);
fieldType.setNumericPrecisionStep(precisionStep);
return new PointVectorStrategy(ctx, fieldName, fieldType);
} else {
return PointVectorStrategy.newInstance(ctx, fieldName);
}
}
Aggregations