Example usage for org.apache.lucene.spatial.util DistanceToShapeValueSource DistanceToShapeValueSource

List of usage examples for org.apache.lucene.spatial.util DistanceToShapeValueSource DistanceToShapeValueSource

Introduction

In this page you can find the example usage for org.apache.lucene.spatial.util DistanceToShapeValueSource DistanceToShapeValueSource.

Prototype

public DistanceToShapeValueSource(ShapeValuesSource shapeValueSource, Point queryPoint, double multiplier,
            SpatialContext ctx) 

Source Link

Usage

From source file:org.apache.solr.legacy.BBoxStrategy.java

License:Apache License

@Override
public DoubleValuesSource makeDistanceValueSource(Point queryPoint, double multiplier) {
    //TODO if makeShapeValueSource gets lifted to the top; this could become a generic impl.
    return new DistanceToShapeValueSource(makeShapeValueSource(), queryPoint, multiplier, ctx);
}