Currently our config function uses a very particular object mapping.
Would it be better to assume the object coming in is the "elasticsearch" friendly object and then we map it to the desired config settings or use defaults that we want to see used.
I got to this because I wanted to make "client" close. To achieve this I manually added the property "maxKeepAliveRequests".
client = new elasticsearch.Client({
host: config.db.url,
maxKeepAliveRequests: 1
});
Currently our config function uses a very particular object mapping.
Would it be better to assume the object coming in is the "elasticsearch" friendly object and then we map it to the desired config settings or use defaults that we want to see used.
I got to this because I wanted to make "client" close. To achieve this I manually added the property "maxKeepAliveRequests".