added support for POSTing an array of documents to the index