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

Mark Harwood commented on SOLR-2268:
------------------------------------

The extra parens can be used to let you add holes to the polygons. 
An example application is to offer users the option to "search further afield" 
having read through initial batch of search results. The subsequent search 
polygon is then effectively a doughnut shape with a hole that avoids returning 
results already seen from the first search.

I know you can achieve the same effect with "NOT" clauses but it illustrates 
the flexibility on offer.

> Add support for Point in Polygon searches
> -----------------------------------------
>
>                 Key: SOLR-2268
>                 URL: https://issues.apache.org/jira/browse/SOLR-2268
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>
> In spatial applications, it is common to ask whether a point is inside of a 
> polygon.  Solr could support two forms of this: 
> # A field contains a polygon and the user supplies a point.  If it does, the 
> doc is returned.  
> # A document contains a point and the user supplies a polygon.  If the point 
> is in the polygon, return the document
> With both of these case, it would be good to support the negative assertion, 
> too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to