Re: performance issues with geofilt

2015-02-25 Thread david.w.smi...@gmail.com
Okay. Just to re-emphasize something I said but which may not have been clear, it isn’t an either-or for filter & sort. Filter with the spatial field type that makes sense for filtering, sort (or boost) with the spatial field type that makes sense for sorting. RPT sucks for distance sorting, Lat

AW: performance issues with geofilt

2015-02-25 Thread dirk.thalheim
Hello David, thanks for your answer. In the meantime I found the memory hint too in http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4#Sorting_and_RelevancySo Maybe we switch to LatLonType for this kind of searches. But the RPT is also needed as we want to support search by arbitrary pol

Re: performance issues with geofilt

2015-02-24 Thread david.w.smi...@gmail.com
Hi Dirk, The RPT field type can be used for distance sorting/boosting but it’s a memory pig when used as-such so don’t do it unless you have to. You only have to if you have a multi-valued point field. If you have single-valued, use LatLonType specifically for distance sorting. Your sample quer

performance issues with geofilt

2015-02-24 Thread dirk.thalheim
Hello, we are using solr 4.10.1. There are two cores for different use cases with around 20 million documents (location descriptions) per core. Each document has a geometry field which stores a point and a bbox field which stores a bounding box. Both fields are defined with: I'm currently try