/*
Create saves a record to elasticsearch under the provided id.
If the record already exists it will not be inserted.
function create(record, indexArg = indexName) {
        logger.trace('creating record', logRecord ? record : null);

        const query = {
            index: indexArg,
            type: recordType,
            id: record[idField],
            body: record,
            refresh: forceRefresh
        };

        return elasticsearch.create(query);
    }