mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-27 01:13:27 +03:00
cleanup
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
f3c034bdc1
commit
2861588d4c
@ -55,6 +55,4 @@ export function configurePlatform() {
|
||||
addLocation(contactId, () => import(/* webpackChunkName: "contact" */ '@anticrm/contact-resources'))
|
||||
addLocation(chunterId, () => import(/* webpackChunkName: "chunter" */ '@anticrm/chunter-resources'))
|
||||
addLocation(recruitId, () => import(/* webpackChunkName: "recruit" */ '@anticrm/recruit-resources'))
|
||||
|
||||
|
||||
}
|
||||
|
@ -16,33 +16,29 @@
|
||||
|
||||
import { Client } from '@elastic/elasticsearch'
|
||||
|
||||
|
||||
const url = process.env.ELASTIC_URL
|
||||
if (url === undefined) {
|
||||
console.error('please provide elastic url.')
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
const client = new Client({node: 'http://45.32.149.163:9200/'})
|
||||
const client = new Client({ node: 'http://45.32.149.163:9200/' })
|
||||
|
||||
client.ingest.putPipeline({
|
||||
id: 'anticrm-pipeline',
|
||||
body: {
|
||||
"processors" : [
|
||||
{ "attachment" : { "field" : "attachment" } },
|
||||
{ "remove" : { "field" : "attachment" } }
|
||||
processors: [
|
||||
{ attachment: { field: 'attachment' } },
|
||||
{ remove: { field: 'attachment' } }
|
||||
]
|
||||
}
|
||||
})
|
||||
.then(function () {
|
||||
console.log("putPipeline Resolved");
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log("putPipeline error: " + error)
|
||||
})
|
||||
|
||||
|
||||
|
||||
.then(function () {
|
||||
console.log('putPipeline Resolved')
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log('putPipeline error: ', error)
|
||||
})
|
||||
|
||||
// // Create index
|
||||
// client.create({index: 'pdfs', type: 'pdf', id: 'my-index-id',
|
||||
|
Loading…
Reference in New Issue
Block a user