// JavaBin Content
try {
// We will use the JavaBin codec from solrj
// unmarshal the input to a SolrUpdate request
JavaBinUpdateRequestCodec codec = new JavaBinUpdateRequestCodec();
UpdateRequest req = codec.unmarshal(new ByteArrayInputStream(request.contentByteArray()), null);
// Get the list of documents to index out of the UpdateRequest
// Add each document to the bulk request
// convert the SolrInputDocument into a map which will be used as the ES source field
List<SolrInputDocument> docs = req.getDocuments();