Mark,

Yes you can.  You should index polygons, not polylines.  A polyline
semantically refers to the actual line but rather you want to index the
coverage of the nation (the space encircled by the polyline), not the
border literally.

One thing to be aware of is that indexed non-point shapes are pixelated to
a grid kinda like how a vector shape is actually drawn to a computer
screen which is composed of a matrix of pixels.  The approach will
hopefully scale ok for your requirements but if you want more detailed
precision along the borders then it might not -- if you set distErrPct too
low then you'll run out of memory while indexing.

To get started, see:
http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4

~ David

On 9/23/13 5:21 PM, "Mark Backman" <gfxp...@yahoo.com> wrote:

>
>
>I'm new to spatial search within solr.  If I have a set of records
>containing closed polylines describing, say, the boundaries of nations,
>can I use solr to build an index of these records against which I can
>search to see if a point is contained within any of them?
>
>
>Thanks,
>
>-Mark  

Reply via email to