You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Kamal Kishore Aggarwal <kk...@gmail.com> on 2014/05/21 10:09:38 UTC
NumberFormatException in solr.SpatialRecursivePrefixTreeFieldType in
solr upgrade
I am using following field type with solr 4.2 & its working fine.
<field name="latlong" type="location_rpt" indexed="true" stored="true"
required="false" multiValued="false" />
<fieldType name="location_rpt"
class="solr.SpatialRecursivePrefixTreeFieldType"
distErrPct="0.025"
maxDistErr="0.000009"
units="degrees"
/>
But, when I am upgrading solr to solr 4.7.1, it is reporting following
errors while posting docs:
Caused by: com.spatial4j.core.exception.InvalidShapeException:
java.lang.NumberFormatException: For input string: "78.42968,30.73333,78.45"
at
org.apache.solr.util.SpatialUtils.parsePoint(SpatialUtils.java:68)
at
org.apache.solr.util.SpatialUtils.parsePointSolrException(SpatialUtils.java:84)
... 45 more
Caused by: java.lang.NumberFormatException: For input string:
"78.42968,30.73333,78.45"
I am posting following doc value to solr.
<field name='latlong'><![CDATA[30.9308,78.42968,30.73333,78.45]]></field>
With Thanks & Regards
Kamal Kishore