Yes, decompose into multi polygon.

On 05-Jun-2017 6:11 AM, "rgamarra" <rgama...@gmail.com> wrote:

> Hi there all,
>
> I'm using the RPT field type to perform geospatial polygonal searches (e.g.
> https://cwiki.apache.org/confluence/display/solr/Spatial+Search)/
>
> How do you recommend with self-crossing polygons (8 figure or bow-tie, for
> example)?
>
> Decompose it in a multi polygon? Setting to "none" validation rule: in what
> cases the unexpected behavior arises?
>
> or, configure different validation rules at the schema level?
>
> According to https://lucene.apache.org/core/6_2_0/core/org/apache/
> lucene/geo/Polygon.html
>
>    1. The polygon must not be self-crossing, otherwise may result in
>    unexpected behavior.
>
> The expected behavior of the search is that of searching for points in each
> of the lobes of the 8 figure, for the example given.
>
> Best regards
>
>
> --
> Rodolfo Federico Gamarra
>

Reply via email to