code: private void addToIndex(Map<String, String> param) throws Exception {
          String doc = writeUpdateString(param);
          addToBuffer(doc);
      }
docs: Add the event to the index
  
  @param param : Map of key/value pairs to add to the index
  @throws Exception if there was an error