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 Ben Hosmer <be...@gmail.com> on 2012/12/05 20:27:29 UTC

SOLR 4 Problems with JSON Polygon Update

I'm trying to add some simple JSON geospatial data to SOLR. I followed the
wiki, and have installed the jts jars and set up my schema like this:
http://pastebin.com/ENJL0JPA

I have just two fields, the id field which is the unique field, and my
coordinates, which are polygons.

I think I've got everything configured properly as fas as the schema and
configuration, but when I try to send my small geo-json file, I get this
error:

{"responseHeader":{"status":400,"QTime":0},"error":{"msg":"ERROR: [doc=99]
Error adding field 'coordinates'='[100.0, 0.0, 101.0, 0.0, 101.0, 1.0,
100.0, 1.0, 100.0, 0.0]' msg=null","code":400}}