[
https://issues.apache.org/jira/browse/SOLR-3230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bill Bell updated SOLR-3230:
----------------------------
Description:
This changes {!geofilt} to use a bounding box and then does a accurate filter.
See attachment
was:
This adds a {!fastgeo} that works with LatLong types.
It does a boundary box, and then does an exact haversine result.
{code}
@Override
public Query rewrite(IndexReader reader) throws IOException {
System.out.println("In rewrite bboxQuery " + (bboxQuery == null ? "null" :
"not null"));
System.out.println("In rewrite fastgeo " + (fastgeo ? "true" : "false"));
if (fastgeo) {
Query query = bboxQuery.rewrite(reader);
IndexSearcher searcher = new IndexSearcher(reader);
SpatialWeight w = new SpatialWeight(searcher);
return query;
} else
return bboxQuery != null ? bboxQuery.rewrite(reader) : this;
}
{code}
Assignee: Grant Ingersoll
Summary: Performance improvement for geofilt by doing a bbox
approximation and then Filter (was: FastGeo Filter Feature)
> Performance improvement for geofilt by doing a bbox approximation and then
> Filter
> ---------------------------------------------------------------------------------
>
> Key: SOLR-3230
> URL: https://issues.apache.org/jira/browse/SOLR-3230
> 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:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]