Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor tweaks for ES-->OS transition for Opensearch Consolidation #735

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ The following parameters can be set in config files or in env variables:
- ES.ES_INDEX: Elasticsearch index name
- ES.ES_REFRESH: Elasticsearch refresh method. Default to string `true`(i.e. refresh immediately)
- FILE_UPLOAD_SIZE_LIMIT: the file upload size limit in bytes
- OPENSEARCH: Flag to use Opensearch NPM instead of Elasticsearch
- RESOURCES_API_URL: TC resources API base URL
- GROUPS_API_URL: TC groups API base URL
- PROJECTS_API_URL: TC projects API base URL
Expand Down
4 changes: 2 additions & 2 deletions src/common/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const HttpStatus = require("http-status-codes");
const xss = require("xss");
const logger = require("./logger");

const { Client: ESClient } = require("@opensearch-project/opensearch");
const { Client: OSClient } = require("@opensearch-project/opensearch");
const elasticsearch = require("elasticsearch");

const projectHelper = require("./project-helper");
Expand Down Expand Up @@ -734,7 +734,7 @@ function getESClient() {
});
}
} else {
esClient = new ESClient({
esClient = new OSClient({
node: esHost,
ssl: {
rejectUnauthorized: false,
Expand Down