Example usage for Java org.apache.lucene.spatial SpatialStrategy fields, constructors, methods, implement or subclass
The text is from its open source code.
Field[] | createIndexableFields(Shape shape) Returns the IndexableField(s) from the shape that are to be added to the org.apache.lucene.document.Document . |
SpatialContext | getSpatialContext() |
DoubleValuesSource | makeDistanceValueSource(Point queryPoint, double multiplier) Make a ValueSource returning the distance between the center of the indexed shape and queryPoint . |
Query | makeQuery(SpatialArgs args) Make a Query based principally on org.apache.lucene.spatial.query.SpatialOperation and Shape from the supplied args . |
DoubleValuesSource | makeRecipDistanceValueSource(Shape queryShape) Returns a ValueSource with values ranging from 1 to 0, depending inversely on the distance from #makeDistanceValueSource(org.locationtech.spatial4j.shape.Point,double) . |