[
https://issues.apache.org/jira/browse/SOLR-5420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
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: https://issues.apache.org/jira/browse/SOLR-5420
> 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
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]