We were able to resolve this issue by installing the JTS library on the server 
and updating the solr schema.xml to remap the "solr. 
SpatialRecursivePrefixTreeFieldType" class to the "JtsSpatialContextFactory"

Thank You
Lee V. Duhl
Realcomp II Ltd.
Phone: (248) 699-9133
www.realcomp.com
www.moveinmichigan.com

-----Original Message-----
From: Alessandro Benedetti [mailto:benedetti.ale...@gmail.com] 
Sent: Tuesday, October 06, 2015 9:43 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr 5.2.1 and spatial polygon searches

Hi lee, shot in the dark, have you tried using the *WKT *syntax with range 
spatial approach*?*

for example :
q=geoloc:["0 18" TO "18 100”] .

I am using it in 5.3

Cheers


On 6 October 2015 at 14:22, Lee Duhl <ld...@corp.realcomp.com> wrote:

> The following query runs fine on Solr 4.x, but errors with a "Couldn't 
> parse shape ...." error message in Solr 5.2.1
> geoloc:"INTERSECTS(POLYGON((-83.38434219360353
> 42.51412013568205,-83.3474349975586 
> 42.51196902987156,-83.3561897277832
> 42.495390378152244,
> -83.4001350402832 42.496149801777875,-83.38434219360353
> 42.51412013568205)))"
>
> Solr 4 required the Spatial4J library to be installed in order for the 
> above query to run.
>
> Can Spatial4J be installed on Solr 5.2.1 or is there another library 
> that needs to be installed for these types of queries to work?
>
> Note: The above query is a simple "rectangle" polygon and is used for 
> only this example. Bbox queries are not applicable as most of our 
> queries generally use more complex polygons.
>
> Thank You
> Lee V. Duhl
> Realcomp II Ltd.
> Phone: (248) 699-9133
> www.realcomp.com<http://www.realcomp.com/>
> www.moveinmichigan.com<http://www.moveinmichigan.com/>
>
>


--
--------------------------

Benedetti Alessandro
Visiting card - http://about.me/alessandro_benedetti
Blog - http://alexbenedetti.blogspot.co.uk

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Reply via email to