You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (Commented) (JIRA)" <ji...@apache.org> on 2012/03/11 07:33:14 UTC

[jira] [Commented] (SOLR-3230) FastGeo Filter Feature

    [ https://issues.apache.org/jira/browse/SOLR-3230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227001#comment-13227001 ] 

David Smiley commented on SOLR-3230:
------------------------------------

Hi Bill. It appears you forgot to supply a patch.
                
> 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