multivalue location_rpt field not indexing with JSON format

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

multivalue location_rpt field not indexing with JSON format

blmak
This post has NOT been accepted by the mailing list yet.
Hi
I'm a newbie to using the spatial4, and so forgive me in advance if there is an obvious answer that I am missing. I am trying to index a multivalue lat/long values in the location_rpt field from a json file, and I am getting the following error, when I attempt to index a json file:

{"responseHeader":{"status":400,"QTime":5},"error":{"msg":"ERROR: [doc=054ac6377d6ca4ad387f73b063000910] Error adding field 'location'='[33.448448009999999897, -111.988400740000003]' msg=null","code":400}}

So, I have added the following my schema.xml:

<field name="location"  type="location_rpt"  indexed="true" stored="true"  multiValued="true" /> 

<fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType" geo="true" units="degrees" distErrPct="0.025" maxDistErr="0.000009" />


And here is a truncated example of the JSON I am trying to index:

[{"id":"054ac6377d6ca4ad387f73b063000910","keywords":["time", "trouble", "exactly"],"description":"a anno is an anno is an anno", "location":[[33.448448009999999897,-111.988400740000003],[33.448448009999999897,-111.988400740000003],[33.448448009999999897,-111.988400740000003],[33.448448009999999897,-111.988400740000003],[33.448448009999999897,-111.988400740000003],[33.448448009999999897,-111.988400740000003],[33.448448009999999897,-111.988400740000003],[33.448448009999999897,-111.988400740000003],[33.448448009999999897,-111.988400740000003],
[40.732202530000002128,-73.925320569999996678],[33.448448009999999897,-111.988400740000003],[33.448448009999999897,-111.988400740000003],[40.732202530000002128,-73.925320569999996678],[33.448448009999999897,-111.988400740000003],[33.448448009999999897,-111.988400740000003],[33.448448009999999897,-111.988400740000003],[33.448448009999999897,-111.988400740000003],[33.448448009999999897,-111.988400740000003],[40.732202530000002128,-73.925320569999996678],[33.448448009999999897,-111.988400740000003]]},
...]

I am running solr-4.3.0. Any ideas/directions that I can go to get this to work?  From the documentation, it appears that the spatial field functionality should work with Apache 4.3.0. Is there a library/extension that I am missing?

Thanks for any assistance.
-barbra