allow routing key in CreateDocumentParams

This commit is contained in:
Paul Brabban
2018-02-27 08:25:53 +00:00
parent 62c721de25
commit 44f71205b7
2 changed files with 10 additions and 0 deletions
@@ -61,6 +61,14 @@ client.create({
}, (err, repsonse, status) => {
});
client.create({
id: '123',
index: 'index',
type: 'type',
routing: 'parent_123',
}, (err, repsonse, status) => {
});
client.cluster.getSettings({
masterTimeout: '100s'
}, (err, response) => {
+2
View File
@@ -7,6 +7,7 @@
// Margus Lamp <https://github.com/mlamp>
// Ahmad Ferdous Bin Alam <https://github.com/ahmadferdous>
// Simon Schick <https://github.com/SimonSchick>
// Paul Brabban <https://github.com/brabster>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
@@ -199,6 +200,7 @@ export interface CreateDocumentParams extends GenericParams {
waitForActiveShards?: string;
parent?: string;
refresh?: Refresh;
routing?: string;
timeout?: TimeSpan;
timestamp?: Date | number;
ttl?: TimeSpan;