FastGeo Filter Feature ---------------------- Key: SOLR-3230 URL: https://issues.apache.org/jira/browse/SOLR-3230 Project: Solr Issue Type: Improvement Reporter: Bill Bell Fix For: 4.0
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} -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org