lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (Commented) (JIRA)" <>
Subject [jira] [Commented] (SOLR-3230) Performance improvement for geofilt by doing a bbox approximation and then Filter
Date Sun, 11 Mar 2012 16:37:59 GMT


Yonik Seeley commented on SOLR-3230:

Looks like this patch would probably break post filtering for geofilt since the spatial query
would no longer be top-level.

geofilt already does do a bounding box, but it does it "frange" style where it checks the
fieldcache against documents.
It will tend to be be faster when many points match, and slower when few points match.
It will also tend to be faster when cache=false and few points match the main query + other

Hence, it's very important to test these differences in the exact context they will be used
in (i.e. with typical queries and filters for your app).

One way to put the bbox before the geofilt when both are non-cached is
  &fq={!bbox cache=false cost=50}
  &fq={!geofilt cache=false cost=60}

I'm not sure what the right default is, or if we can somehow dynamically detect which will
be better for a particular request.
We could add a flag on geofilt to allow switching between the different bounding box styles
(fieldcache vs standard range).
> Performance improvement for geofilt by doing a bbox approximation and then Filter
> ---------------------------------------------------------------------------------
>                 Key: SOLR-3230
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Bill Bell
>            Assignee: Grant Ingersoll
>             Fix For: 4.0
>         Attachments: SOLR-3230.patch
> This changes {!geofilt} to use a bounding box and then does a accurate filter.
> See attachment

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message