Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
36d7cb69a3 | |||
4924e0a151 | |||
cd98529541 | |||
e6a9282987 | |||
9dcadcd611 | |||
4b045ff988 | |||
023dd1b519 | |||
4971385eae |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@apiclient.xyz/elasticsearch",
|
"name": "@apiclient.xyz/elasticsearch",
|
||||||
"version": "2.0.12",
|
"version": "2.0.16",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "log to elasticsearch in a kibana compatible format",
|
"description": "log to elasticsearch in a kibana compatible format",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@apiclient.xyz/elasticsearch',
|
name: '@apiclient.xyz/elasticsearch',
|
||||||
version: '2.0.12',
|
version: '2.0.16',
|
||||||
description: 'log to elasticsearch in a kibana compatible format'
|
description: 'log to elasticsearch in a kibana compatible format'
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ export class ElasticDoc {
|
|||||||
await this.client.indices.create({
|
await this.client.indices.create({
|
||||||
index: this.index,
|
index: this.index,
|
||||||
body: {
|
body: {
|
||||||
mappings,
|
// mappings,
|
||||||
settings: {
|
settings: {
|
||||||
// You can define the settings according to your requirements here
|
// You can define the settings according to your requirements here
|
||||||
},
|
},
|
||||||
@ -116,6 +116,13 @@ export class ElasticDoc {
|
|||||||
body: documentBody,
|
body: documentBody,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.fastForward = false;
|
||||||
|
await this.client.index({
|
||||||
|
index: this.index,
|
||||||
|
id: optionsArg.docId,
|
||||||
|
body: documentBody,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
this.sessionDocs.add(optionsArg.docId);
|
this.sessionDocs.add(optionsArg.docId);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user