Search in sources :

Example 1 with PointVectorStrategy

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);
    }
}
Also used : PointVectorStrategy(org.apache.solr.legacy.PointVectorStrategy) LegacyFieldType(org.apache.solr.legacy.LegacyFieldType)

Aggregations

LegacyFieldType (org.apache.solr.legacy.LegacyFieldType)1 PointVectorStrategy (org.apache.solr.legacy.PointVectorStrategy)1