I don't believe Solr indexes arbitrary JSON, just as it
does not index arbitrary XML. You need the input
to be quite specific to how Solr expects the data,
it's a relatively flat structure. There is an example
in <solr home>/solr/example/exampledocs/books.json that
will give you an idea of the expected format.

Best
Erick

On Fri, Mar 16, 2012 at 12:19 PM, Chambeda <chamb...@gmail.com> wrote:
> I am trying to load a json document that has the following structure:
> ...
> "accessoriesImage": null,
>  "department": "ET",
>  "shipping": [
>    {
>      "nextDay": 10.19,
>      "secondDay": 6.45,
>      "ground": 1.69
>    }
>  ],
>  "preowned": false,
>  "format": "CD",
> ...
>
> When executing the curl request to store the document in solr I get the
> following error:
>
> p>Problem accessing /solr/update/json. Reason:
> <pre>    invalid key: nextDay [948]</pre></p><hr />/<small>Powered by
> Jetty://</small>/<br/>
>
> the JSON is valid, so I am not sure what I need to do to get this to pass.
> Any ideas?
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Error-while-trying-to-load-JSON-tp3832518p3832518.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to