Arjun, Your input is a POLYGON -- as seen in the error message. The "Try JTS" was hopefully a clue -- on https://cwiki.apache.org/confluence/display/solr/Spatial+Search search for "JTS" and you should see how to set the spatialContextFactory to JTS, and a mention of needing JTS jar. I'll try and add a bit more info on suggesting exactly where to put it and a download link. I'll also mention a shortcut so you don't have to type out the classname -- a recent feature in 6.2.
Since you said you were upgrading... presumably your spatialContextFactory attribute was already set for this to work at all in 5.5? The package reference changed for this value -- I imagine you would have seen a warning/error to this effect in Solr's logs. Do you? ~ David On Tue, Sep 27, 2016 at 10:29 AM William Bell <billnb...@gmail.com> wrote: > the documentation is not good on this. Not sure how to fix it either. > > On Tue, Sep 27, 2016 at 3:41 AM, M, Arjun (Nokia - IN/Bangalore) < > arju...@nokia.com> wrote: > > > Hi, > > > > We are getting the below errors when migrating Solr from 5.5.0 to > > 6.1.0. Could anyone help in resolving the issue, if you have come across > > this? > > > > > org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: > > Error from server at http://127.0.0.1:41569/solr/collection1: Unable to > > parse shape given formats "lat,lon", "x y" or as WKT because > > java.text.ParseException: java.lang.UnsupportedOperationException: > > Unsupported shape of this SpatialContext. Try JTS or Geo3D. input: > > POLYGON((-10 30, -40 40, -10 -20, 0 0, -10 30)) > > > > Thanks in advance.. > > > > Thanks & Regards, > > Arjun M > > > > > > > > > > > -- > Bill Bell > billnb...@gmail.com > cell 720-256-8076 > -- Lucene/Solr Search Committer, Consultant, Developer, Author, Speaker LinkedIn: http://linkedin.com/in/davidwsmiley | Book: http://www.solrenterprisesearchserver.com