I found out how to do it, but you have to have duplicate "add" keys in
a JSON object, which isn't easily serializable from a hash in a
language.

I reported an issue here:
https://issues.apache.org/jira/browse/SOLR-2496

Please vote for it if you agree.


On Wed, May 4, 2011 at 3:00 PM, Neil Hooey <nhooey.li...@gmail.com> wrote:
> How do you add multiple documents to Solr in JSON in a single request?
>
> In XML, I can just send this:
> <add>
>    <doc><field name="id">1</field></doc>
>    <doc><field name="id">2</field></doc>
> </add>
>
> There is an example on this page:
> http://wiki.apache.org/solr/UpdateJSON
>
> But it doesn't demonstrate how to send more than one document.
>
> Thanks,
>
> - Neil
>

Reply via email to