You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by user 01 <us...@gmail.com> on 2013/10/05 14:53:36 UTC

Among LatLonType & SpatialRecursivePrefixTreeFieldType which one for filtering outside of bounding box?

For geospatial search, I need to filter out all points outside of certain
radius from a certain point. No need for precise results, Approximation
will work for me! No sorting is required either. I see there are two
Spatial impls: LatLonType & SpatialRecursivePrefixTreeFieldType. But I am
sure which one should I choose for good performance & less memory?
(As I said approximations are ok for me. Instead of circle if it gives me
approx bounding box results then too I will be fine)

Re: Among LatLonType & SpatialRecursivePrefixTreeFieldType which one for filtering outside of bounding box?

Posted by "Smiley, David W." <ds...@mitre.org>.
Use the location_rpt field type in the example schema.xml -- it has "good
performance & less memory" (what you asked for) compared to LatLonType.
To learn how to tweak some of the settings to get better performance at
the expense of some accuracy, see
http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4

~ David

On 10/5/13 8:53 AM, "user 01" <us...@gmail.com> wrote:

>For geospatial search, I need to filter out all points outside of certain
>radius from a certain point. No need for precise results, Approximation
>will work for me! No sorting is required either. I see there are two
>Spatial impls: LatLonType & SpatialRecursivePrefixTreeFieldType. But I am
>sure which one should I choose for good performance & less memory?
>(As I said approximations are ok for me. Instead of circle if it gives me
>approx bounding box results then too I will be fine)