I have to do a query something like below :-
fq=latlng:IsWithin(POLYGON(('23.60 71.60','28.65 71.68','28.60 72.61','28.63 72.65')))
Now I got stuck here in how to do this query using Spring-Data-Solr where I have function like
public List<Hotel> getHotelsInsidePolygon(Point... points);
It will be helpful if anyone tells how to proceed
Got this one :-
Thing to change in Solr for polygon search to work are
<fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType" spatialContextFactory="com.spatial4j.core.context.jts.JtsSpatialContextFactory" distErrPct="0.025" maxDistErr="0.000009" units="degrees" />