Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread puneeta
Hi David, I tried with other point coordinates and it works fine :) I am still wondering why those coordinates worked with a Polygon though! Downloading JTS Test builder helped me a lot. Thank you so much! Puneeta -- View this message in context: http://lucene.472066.n3.nabble.com/Polygon

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread David Smiley
This polygon is fairly rectangular with one side having a ton of points. Nonetheless the query point is clearly far apart from it (it's much lower (smaller 'y' dimension). On Wed, Jun 28, 2017 at 10:17 PM puneeta wrote: > Hi David, > Actually my polygon had too many coordinates, so i just omit

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread puneeta
Hi David, Actually my polygon had too many coordinates, so i just omitted some while posting my query. Here is my complete multipolygon where the last point is same as the first one: MULTIPOLYGON (((-86.477551331 32.490605651, -86.477637350 32.4903921820001, -86.478257247 32.4905655

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread puneeta
Hi David, I did the following changes: Changed in schema.xml: Added in solrconfig.xml: My fields in the core as defined in the schema is: However, I still face the same issue. No results found for a multipolygon

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread David Smiley
https://lucene.apache.org/solr/guide/6_6/spatial-search.html#SpatialSearch-RptWithGeometrySpatialField > On Jun 28, 2017, at 11:32 AM, puneeta wrote: > > Hi David, > I am sorry ,I did not

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread puneeta
Hi David, I am sorry ,I did not understand what do you mean by "I suggest using RptWithGeometry field". Should leave the existing location_rpt definition in schema.xml? This line I have commented. Should I uncomment it? 1."remove distErrPct and maxDistErr" - 2.Added usejtsMulti="false" I will

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread David Smiley
I suggest using RptWithGeometry field, and with that change remove distErrPct and maxDistErr. See the ref guide, and note the geometry cache option. BTW spatialContextFactory can simply be "jts". If this fixes the issue, then the issue was related to grid approximation. BTW you never quite said

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread puneeta
Hi David, Thank you for the prompt reply. My field definition in schema.xml is : I commented the existing location_rpt And added: My Solr version is 6.2.1 Thanks, Puneeta -- View this message in context: http://lucene.472066.n3.nabble.com/Polygon-search-query-working-but-NOT-Multipolyg

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread David Smiley
Hi Puneeta, So what does your field type definition look like? I'd imagine you're using RptWithGeometrySpatialField. And what is your Solr version? BTW note the settings here https://locationtech.github.io/spatial4j/apidocs/org/locationtech/spatial4j/context/jts/JtsSpatialContextFactory.html