Re: How to use geospatial search to find the locations within polygon

2016-03-06 Thread Pradeep Chandra
Thank u so much David & Jack for ur response. I downloaded the JTS jar file and pasted in server/lib directory. Now it's working and giving the results. Once again Thank u both of u.. -- View this message in context:

Re: How to use geospatial search to find the locations within polygon

2016-03-05 Thread Jack Krupansky
The doc does indeed say "JTS... It's a JAR file that you need to put on Solr's classpath (but not via the standard solrconfig.xml mechanisms)", but that is a little vague and nonspecific. It should probably be a labeled section in the doc, like "Configuring JTS for Polygon Search", and have the

Re: How to use geospatial search to find the locations within polygon

2016-03-05 Thread david.w.smi...@gmail.com
A Java NoClassDefFoundError of something in com.vividsolutions.jts means you don't have JTS on your classpath. You should put the JTS jar file in server/lib/. You can download it from maven-central. Here's a search for JTS with the 1.14 version:

Re: How to use geospatial search to find the locations within polygon

2016-03-05 Thread david.w.smi...@gmail.com
Yes you're right Jack. The ref guide page on this needs more. On Fri, Mar 4, 2016 at 11:36 AM Jack Krupansky wrote: > It would be nice for the doc to say that - describe when IsWithin is and > isn't appropriate. And give some examples as well for people to copy/mimic.

Re: How to use geospatial search to find the locations within polygon

2016-03-04 Thread Pradeep Chandra
Thank u for your reply sirNow, I gave the ending point as starting point to close the polygon It is showing this error: {"error":{"msg":"java.lang.NoClassDefFoundError: com/vividsolutions/jts/geom/Lineal","trace":"java.lang.RuntimeException: java.lang.NoClassDefFoundError:

Re: How to use geospatial search to find the locations within polygon

2016-03-04 Thread Jack Krupansky
It would be nice for the doc to say that - describe when IsWithin is and isn't appropriate. And give some examples as well for people to copy/mimic. -- Jack Krupansky On Fri, Mar 4, 2016 at 10:20 AM, david.w.smi...@gmail.com < david.w.smi...@gmail.com> wrote: > First of all, assuming this is a

Re: How to use geospatial search to find the locations within polygon

2016-03-04 Thread david.w.smi...@gmail.com
First of all, assuming this is a standard point-in-polygon situation, use the Intersects predicate -- with point data it's semantically the same as IsWithin and Intersects is much faster. I don't know why you used isDisjointTo in your 2nd example; maybe you want to find when they don't touch?

How to use geospatial search to find the locations within polygon

2016-03-03 Thread Pradeepchandra Mulpuru
Hi Sir, I have a question on Apache Solr Spatial search. I have a json type data of City, Latitude & Longitude. I indexed those fields with locm_place of the type location_rpt. Now I want to give a polygon as a filter query in order to get the City names located in that polygon. I don't have any