whole_func_string: function getRecord(recordId, indexArg, fields) {
          logger.trace(`getting record id: ${recordId}`);
          const query = {
              index: indexArg || indexName,
              type: recordType,
              id: recordId
          };
  
          if (fields) {
              query._source = fields;
          }
          return elasticsearch.get(query);
      }
func_code_string: function getRecord(recordId, indexArg, fields) {
          logger.trace(`getting record id: ${recordId}`);
          const query = {
              index: indexArg || indexName,
              type: recordType,
              id: recordId
          };
  
          if (fields) {
              query._source = fields;
          }
          return elasticsearch.get(query);
      }
func_documentation_string: serialize save requests.