lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3230) FastGeo Filter Feature
Date Sun, 11 Mar 2012 06:33:14 GMT

    [ 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


Mime
View raw message