Re: Performance issue: Frange with geodist()

2011-10-17 Thread roySolr
Hi Yonik, I have used your suggestion to implement a better radius searcher: &facet.query={!geofilt d=10 key=d10} &facet.query={!geofilt d=20 key=d20} &facet.query={!geofilt d=50 key=d50} It is a little bit faster than with geodist() but still a bottleneck i think. -- View this message in cont

Re: Performance issue: Frange with geodist()

2011-10-15 Thread Bill Bell
I added a Jira issue for this: https://issues.apache.org/jira/browse/SOLR-2840 On 10/13/11 8:15 AM, "Yonik Seeley" wrote: >On Thu, Oct 13, 2011 at 9:55 AM, Mikhail Khludnev > wrote: >> is it possible with geofilt and facet.query? >> >> facet.query={!geofilt pt=45.15,-93.85 sfield=store d=5} >

Re: Performance issue: Frange with geodist()

2011-10-13 Thread Yonik Seeley
On Thu, Oct 13, 2011 at 9:55 AM, Mikhail Khludnev wrote: > is it possible with geofilt and facet.query? > > facet.query={!geofilt pt=45.15,-93.85 sfield=store d=5} Yes, that should be both possible and faster... something along the lines of: &sfield=store&pt=45.15,-93.85 &facet.query={!geofilt d=

Re: Performance issue: Frange with geodist()

2011-10-13 Thread Mikhail Khludnev
is it possible with geofilt and facet.query? facet.query={!geofilt pt=45.15,-93.85 sfield=store d=5} On Thu, Oct 13, 2011 at 4:20 PM, roySolr wrote: > I don't want to use some basic facets. When the user doesn't get any > results > i want > to search in the radius of his search location. Exampl

Re: Performance issue: Frange with geodist()

2011-10-13 Thread roySolr
I don't want to use some basic facets. When the user doesn't get any results i want to search in the radius of his search location. Example: apple store in Manchester gives no result. I want this: Click here to see 2 results in a radius of 10km. Click here to see 11 results in a radius of 50km. C

Re: Performance issue: Frange with geodist()

2011-10-13 Thread Mikhail Khludnev
Ok. I've found explicit caveat for you http://wiki.apache.org/solr/SpatialSearch#How_to_facet_by_distance I don't think I'm able to help. Just for curious why geofilt is not enough for you? My concern is that the functions and queries score documents, but for facet queries the only filtering is re

Re: Performance issue: Frange with geodist()

2011-10-13 Thread roySolr
Hello Mikhail, Thanks for your answer.. I think my cache is enabled for Geodist(). First time request takes 1440ms and second time only 2ms. In the statistics i see it's hits the cache. The problem is every request had another location with other distances and results. So almost every request tak

Re: Performance issue: Frange with geodist()

2011-10-13 Thread Mikhail Khludnev
Hello, Could check that every request doesn't trigger loading values into the cache? You can see it in log. Recently I have similar issue when caching for geodist() was disabled. Regards On Thu, Oct 13, 2011 at 11:31 AM, roySolr wrote: > Hello, > > I use the facet.query to search documents nea