code: 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);
      }
docs: serialize save requests.