diff --git a/types/elasticsearch/elasticsearch-tests.ts b/types/elasticsearch/elasticsearch-tests.ts index 3043a1f473..2e90389126 100644 --- a/types/elasticsearch/elasticsearch-tests.ts +++ b/types/elasticsearch/elasticsearch-tests.ts @@ -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) => { diff --git a/types/elasticsearch/index.d.ts b/types/elasticsearch/index.d.ts index dbf836c6ae..4d53575749 100644 --- a/types/elasticsearch/index.d.ts +++ b/types/elasticsearch/index.d.ts @@ -7,6 +7,7 @@ // Margus Lamp // Ahmad Ferdous Bin Alam // Simon Schick +// Paul Brabban // 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;