Merge pull request #13873 from bfsmith/master

ElasticSearch create document id optional
This commit is contained in:
Sheetal Nandi
2017-01-10 11:54:29 -08:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -32,6 +32,11 @@ client.indices.delete({
}, function (error) {
});
client.create({
index: 'index',
type: 'type'
});
client.create({
id: '123',
index: 'index',
+1 -1
View File
@@ -195,7 +195,7 @@ declare module Elasticsearch {
version?: number;
versionType?: VersionType;
pipeline?: string;
id: string;
id?: string;
index: string;
type: string;
}