Re: Fwd: Index JTS Point in Solr/Lucene index

2013-10-14 Thread Guido Medina
Yeap, AFAIK you can only send the field in WKT format POINT (X Y), here is my definition for lat lons using polygons in the map: *JTS field definition:* class="solr.SpatialRecursivePrefixTreeFieldType" spatialContextFactory="com.spatial4j.core.context.jts.JtsSpatialContextFact

Re: Fwd: Index JTS Point in Solr/Lucene index

2013-10-14 Thread Shahbaz lodhi
Thanks Guido for the reply, Just to clarify; this means that we cannot index JTS POINT in format like Pt(x=55.76056,y=24.19167). Is that so? Thanks again. On Mon, Oct 14, 2013 at 4:20 PM, Guido Medina wrote: > WKT format should work, like explained in the wiki: > > http://en.wikipedia.org/wiki

Re: Fwd: Index JTS Point in Solr/Lucene index

2013-10-14 Thread Guido Medina
WKT format should work, like explained in the wiki: http://en.wikipedia.org/wiki/Well-known_text Guido. On 14/10/13 11:50, Shahbaz lodhi wrote: Hi, *Story:* I am trying to index *JTS point* in following format; not successful though: Pt(x=55.76056,y=24.19167) It is the format that i get by ct

Fwd: Index JTS Point in Solr/Lucene index

2013-10-14 Thread Shahbaz lodhi
Hi, *Story:* I am trying to index *JTS point* in following format; not successful though: Pt(x=55.76056,y=24.19167) It is the format that i get by ctx.readShape( shapeString ). I don't get any error at reading shape or adding shape to solrInputDocument but prompts "*error reading WKT*" on adding