lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <>
Subject [jira] [Resolved] (SOLR-5420) Solr indexing of multiple spatial fields (with polygons) produces errors
Date Thu, 07 Nov 2013 21:19:17 GMT


David Smiley resolved SOLR-5420.

    Resolution: Cannot Reproduce

As indicated on his response in StackOverflow, there actually were self-intersection issues
on his polygons.  There appears to be no problem in Solr with using multiple spatial fields.

By the way, if your polygons are self-intersecting, then you can use JTS to buffer(0) them,
which often resolves it.  This and other techniques are on the JTS FAQ.

> Solr indexing of multiple spatial fields (with polygons) produces errors
> ------------------------------------------------------------------------
>                 Key: SOLR-5420
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.5
>            Reporter: JerryC
>            Assignee: David Smiley
> We got the following problem. When we try to index polygons together with their centroid
in one document only a few documents are indexed, most of them return the error:
> com.spatial4j.core.exception.InvalidShapeException: Ring Self-intersection at or near
point (10.4592,​ 49.921,​ NaN)
> When we index only the polygons everything works fine. When we index only the centroids
everything woks fine. But when we index the polygons in one SpatialRecursivePrefixTreeFieldType
and the centroid in another SpatialRecursivePrefixTreeFieldType in one document we get the
errors for a lot of polygons. Out of around 13000 polygons only ca. 3000 are indexed the other
documents produce the error.
> We are using the latest Solr 4.5 version.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message