lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Bell (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-3230) FastGeo Filter Feature
Date Sat, 10 Mar 2012 11:12:57 GMT
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message