lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guido Medina <guido.med...@temetra.com>
Subject Re: Fwd: Index JTS Point in Solr/Lucene index
Date Mon, 14 Oct 2013 11:20:59 GMT
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 ctx.readShape( shapeString ).
>
> I don't get any error at reading shape or adding shape
> to solrInputDocument but prompts "*error reading WKT*" on adding document
> to solr (i.e. solrServer.add(solrInputDocument)).
> *
> *
>
> *Question:*
> Is it a legal way to index:
> solrInputDocument.addField("myGeoField",
> JtsSpatialContext.GEO.readShape(shapeString));
> solr.add(solrInputDocument);
>
>   or I'll have to stick to the WKT format.
>
>
>
>
>
>
> Any help will be highly appreciated.
>
> Thanks,
>
> Shahbaz
>


Mime
View raw message