mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
allow routing key in CreateDocumentParams
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Vendored
+2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user