Issue Type: Improvement Improvement
Affects Versions: 4.2.0.Final
Assignee: Unassigned
Components: spatial
Created: 13/Feb/13 10:24 AM
Description:

SpatialContext has two methods: onDefaultCoordinates() and onCoordinates(String), the first one makes it easy for simple cases.

but DistanceSortField constructors must know the spatial field name (you can't create one for the default coordinates)
--> add DistanceSortField(Point) and DistanceSortField(double, double) which act on default coordinates

same for FullTextQuery.setSpatialParameters(Point, String) and FullTextQuery.setSpatialParameters(double, double, String)
--> there should be FullTextQuery.setSpatialParameters(Point) and FullTextQuery.setSpatialParameters(double, double)

I would like to reuse distance computation in my own code: if my entity implements Coordinates and I have a Point origin, I would like to be able to call origin.getDistanceTo(myEntity) but Point.getDistanceTo() takes a Point, not a Coordinates.
--> change Point.getDistanceTo(Point other) to Point.getDistanceTo(Coordinates other)

Project: Hibernate Search
Priority: Trivial Trivial
Reporter: Xavier Dury
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira