From 47b573eb538465d280ab05ed9ca9e823bc349ced Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Thu, 28 Dec 2023 12:43:18 -0500 Subject: [PATCH] Change according to PR suggestions Signed-off-by: Derek Ho --- USER_GUIDE.md | 2 +- guides/advanced_index_actions.md | 2 +- guides/index_lifecycle.md | 2 +- guides/msearch.md | 2 +- guides/search.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/USER_GUIDE.md b/USER_GUIDE.md index 0a732f004..baabaa221 100644 --- a/USER_GUIDE.md +++ b/USER_GUIDE.md @@ -26,7 +26,7 @@ var host = 'localhost'; var protocol = 'https'; var port = 9200; -var auth = `admin:`; // For testing only. Don't store credentials in code. +var auth = `admin:myStrongPassword123!`; // For testing only. Don't store credentials in code. var ca_certs_path = '/full/path/to/root-ca.pem'; // Optional client certificates if you don't want to use HTTP basic authentication. diff --git a/guides/advanced_index_actions.md b/guides/advanced_index_actions.md index 555a919c3..e9478b89b 100644 --- a/guides/advanced_index_actions.md +++ b/guides/advanced_index_actions.md @@ -7,7 +7,7 @@ Let's create a client instance, and an index named `movies`: ```javascript const { Client } = require('@opensearch-project/opensearch'); const client = new Client({ - node: `https://admin:@localhost:9200`, + node: `https://admin:myStrongPassword123!@localhost:9200`, ssl: { rejectUnauthorized: false } }); client.indices.create({index: 'movies'}) diff --git a/guides/index_lifecycle.md b/guides/index_lifecycle.md index 649beeac9..973818bed 100644 --- a/guides/index_lifecycle.md +++ b/guides/index_lifecycle.md @@ -18,7 +18,7 @@ Let's create a client instance to access this cluster: const { Client } = require('@opensearch-project/opensearch'); const client = new Client({ - node: `https://admin:@localhost:9200`, + node: `https://admin:myStrongPassword123!@localhost:9200`, ssl: { rejectUnauthorized: false } }); diff --git a/guides/msearch.md b/guides/msearch.md index c3e744b81..3e97210bb 100644 --- a/guides/msearch.md +++ b/guides/msearch.md @@ -8,7 +8,7 @@ OpenSearch's Multi-Search (`msearch`) API allows you to execute multiple search const host = "localhost"; const protocol = "https"; const port = 9200; -const auth = `admin:`; +const auth = `admin:myStrongPassword123!`; const ca_certs_path = "/full/path/to/root-ca.pem"; const { Client } = require("@opensearch-project/opensearch"); const fs = require("fs"); diff --git a/guides/search.md b/guides/search.md index 071b47c5d..9f9d3311d 100644 --- a/guides/search.md +++ b/guides/search.md @@ -6,7 +6,7 @@ Let's start by creating an index and adding some documents to it: var host = "localhost"; var protocol = "https"; var port = 9200; -var auth = `admin:`; // For testing only. Don't store credentials in code. +var auth = `admin:myStrongPassword123!`; // For testing only. Don't store credentials in code. var ca_certs_path = "/full/path/to/root-ca.pem"; // Optional client certificates if you don't want to use HTTP basic authentication.