docs: private void addToBuffer(String index, String document) {
  		JsonObject message = new JsonObject();
  		message.put("event", "index");
  		message.put("index", index);
  		message.put("document", document);
  		sendToIndex(message.toString());
  	}