collect indexSettings on queue creation, pass to job and use at index creation

This commit is contained in:
2016-06-28 18:29:56 -07:00
parent 13a78d12cc
commit d2e843f05b
2 changed files with 4 additions and 2 deletions

View File

@@ -45,7 +45,8 @@ export default class Esqueue extends events.EventEmitter {
};
const options = Object.assign(defaults, opts, {
doctype: this.settings.doctype
doctype: this.settings.doctype,
indexSettings: this.settings.indexSettings,
});
return new Job(this.client, index, type, payload, options);