Hi, I'm using Solr 4.10.3 As field type in my schema.xml. I'm using "location_rpt" like the description in the documentation.
<fieldType name="location_rpt" class= "solr.SpatialRecursivePrefixTreeFieldType" geo="true" distErrPct="0.025" maxDistErr="0.000009" units="degrees" /> Everything works good and fine. I'm able to index points and include a POLYGON search in my query. However, it throws an exception in some cases where the Polygon in my query might be intersecting at some point. org.apache.solr.common.SolrException: com.spatial4j.core.exception.InvalidShapeException: Self-intersection at or near point (23.5235632532521, 77.6266564124352, NaN) How could I clean up my polygon so that Solr doesn't throw an exception. Also, a possible solution would be to include only the boundary (in case the polygon intersects at some point). Is it possible to do it on the Solr side? Thanks. -- Prateek Sachan Indian Institute of Technology Delhi