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);
    }
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);
    }
function getRecord ( recordId , indexArg , fields ) { logger . trace ( ` ${ recordId } ` ) ; const query = { index : indexArg || indexName , type : recordType , id : recordId } ; if ( fields ) { query . _source = fields ; } return elasticsearch . get ( query ) ; }
serialize save requests.
serialize save requests .