[ https://issues.apache.org/jira/browse/SOLR-12899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17299416#comment-17299416 ]
Famas commented on SOLR-12899: ------------------------------ Hello guys, I'm wondering how to activate the jts-1.14.jar with platform sh Cloud. Does there a request to bolb api to upload my file directly to this directory /opt/solr/6.6/server/lib/jts-1.14.jar ? I already tried to put the jts extension under .platform/solr/atlantic_mon_installateur/jts-1.14.jar but unfortunately the jts still not loaded to class path, and I'm getting this exception : _ org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: JVM Error creating core [atlantic_mon_installateur]: com/vividsolutions/jts/geom _ Any idea would be appreciated! Cheers! > geodist returns polygon with incorrect distance > ----------------------------------------------- > > Key: SOLR-12899 > URL: https://issues.apache.org/jira/browse/SOLR-12899 > Project: Solr > Issue Type: Bug > Components: spatial > Reporter: Neil Ireson > Priority: Minor > > I have an RPT field which contains a mix of points and polygons. > When I perform a geodist query, where the query point is within an indexed > polygon, the polygon is correctly returned, however it is sorted as being the > most distant, and the returned distance to the polygon exceeds the maximum > distance specified in the query. > Obviously some calculation is being performed which puts the polygon within > 100m of the query point, however the distance being calculated for sorting > or/and response is not the same. It appears from playing with the query that > if the Polygon is within the query distance then it is always returned as the > last document, whether or not the documents are sorted. > > > This is the query and the final two documents returned... > > http://localhost:8983/solr/Naptan/select?q=*:*&fl=*,dist:geodist()&rows=100&fq=\{!geofilt}&sfield=location&pt=53.3805565,-1.4645408&d=0.1&sort=geodist()%20asc > ... > |35| | > |ATCOCode|"370022835"| > |StopType|"BCT"| > |StopCategory|"Bus"| > |location| | > |0|"53.3813701862,-1.4650627934"| > |_version_|1614979438316880000| > |dist|0.096849374| > |36| | > |ATCOCode|"502432214"| > |StopType|"BCS"| > |StopCategory|"Bus"| > |location| | > |0|"POLYGON ((-1.4646256 53.3796518, -1.4635259 53.3796806, -1.4636171 > 53.3805894, -1.4627105 53.3810406, -1.4647973 53.3811781, -1.4646256 > 53.3796518))"| > |_version_|1615121382652248000| > |dist|20015.115| -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org