sepia-search-motore-di-rice.../server/helpers/elastic-search.ts

9 lines
250 B
TypeScript
Raw Normal View History

2020-02-13 11:49:03 +01:00
import { Client } from '@elastic/elasticsearch'
import { CONFIG } from '../initializers/constants'
2020-02-14 14:09:31 +01:00
const elasticSearch = new Client({ node: 'http://' + CONFIG.ELASTIC_SEARCH.HOSTNAME + ':' + CONFIG.ELASTIC_SEARCH.PORT })
2020-02-13 11:49:03 +01:00
export {
2020-02-14 14:09:31 +01:00
elasticSearch
2020-02-13 11:49:03 +01:00
}