[
https://issues.apache.org/jira/browse/SOLR-4947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13691049#comment-13691049
]
David Smiley commented on SOLR-4947:
------------------------------------
I surmise you are seeing the effect of grid approximation. If you haven't
changed the default location_rpt configuration then you have ~1 meter precision
and 2.5% shape approximation (distErrPct=0.025). Shapes are pixelated/gridded
which of course approximates the original shape. At the expense of slowing
indexing, using more memory during indexing, and a larger index, try setting
distErrPct to 0.001. Maybe that will give you enough additional precision to
satisfy your requirements. I suspect it will since you didn't notice the
approximation when you indexed a smaller piece of the original polygon.
One day, maybe next year, I'd like to have an indexing approach in which the
original geometries are stored and evaluated to confirm the match, but only
when the search algorithm isn't certain it's a match.
> geofilt gives wrong results
> ---------------------------
>
> Key: SOLR-4947
> URL: https://issues.apache.org/jira/browse/SOLR-4947
> Project: Solr
> Issue Type: Bug
> Components: spatial
> Affects Versions: 4.3
> Environment: java version "1.7.0_15"
> OpenJDK Runtime Environment (IcedTea7 2.3.7) (7u15-2.3.7-0ubuntu1~12.04.1)
> OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
> Reporter: Christian Winkler
> Priority: Critical
>
> I have indexed (filtered) OpenStreetMap data for Germany including ways,
> total 3,855,159 documents, core is optimized.
> Queries contain some correct results but also (seemingly) arbitrary others:
> {noformat}
> <lst name="responseHeader">
> <int name="status">0</int>
> <int name="QTime">335</int>
> <lst name="params">
> <str name="indent">true</str>
> <str name="q">{!geofilt sfield=geo pt=49.434825,11.079835 d=1} </str>
> <str name="_">1371806261508</str>
> <str name="wt">xml</str>
> </lst>
> </lst>
> <result name="response" numFound="823" start="0">
> <doc>
> <str name="id">w55380630</str>
> <str name="geo">POLYGON((7.342515 49.3058912, 7.3428923 49.3058912,
> 7.3428923 49.3057308, 7.342515 49.3057308, 7.342515 49.3058912)
> )</str>
> <str name="amenity">place_of_worship</str>
> <str name="name">Klinikkirche</str>
> <long name="_version_">1438312839527792640</long></doc>
> <doc>
> <str name="id">w77731561</str>
> <str name="geo">POLYGON((7.7563699 50.4972286, 7.7563699 50.4972296,
> 7.7563713 50.4972296, 7.7563713 50.4972286, 7.7563699 50.4972286)
> )</str>
> [...]
> {noformat}
> 7.7° is not within 1km of 11.1°. It only happens with shapes.
> Indexing only a part of Germany the query works fine and produces the correct
> results.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]