I'm using solrj and attempting to index some latitude and longitudes.  My
schema.xml has this dynamicField definition:
<dynamicField name="*_coordinate"  type="tdouble" indexed="true" 
stored="false" />

When I attempt to update a document like so
doc.setField("job_coordinate","40.7143,-74.006");

I get the following error:
Exception in thread "main"
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: ERROR:
[doc=1] Error adding field 'job_coordinate'='40.7143,-74.006' msg=For input
string: "40.7143,-74.006"

However, if I change the field to a location field that is defined in my
schema.xml, like "store", it works fine.  Does anyone know how to add/update
a dynamic coordinate field to documents?  I'm using Solr 4.4.0.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Unable-to-update-dynamic-coordinate-field-tp4101992.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to