String documentId = mapper.getDocumentId(model);
Logger.debug("Index Name: %s", indexName);
contentBuilder = XContentFactory.jsonBuilder().prettyPrint();
mapper.addModel(model, contentBuilder);
Logger.debug("Index json: %s", contentBuilder.string());
IndexResponse response = client.prepareIndex(indexName, typeName, documentId)
.setSource(contentBuilder).execute().actionGet();
// Log Debug
Logger.info("Index Response: %s", response);