Skip to content

Commit 96673c4

Browse files
committed
Freshness pass
1 parent 0d49786 commit 96673c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/search/search-get-started-nodejs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Begin by opening a Powershell console or other environment in which you've insta
113113
114114
```json
115115
{
116-
"serviceName" : "[SERVICE_NAME]",
116+
"serviceName" : "[SEARCH_SERVICE_NAME]",
117117
"adminKey" : "[ADMIN_KEY]",
118118
"queryKey" : "[QUERY_KEY]",
119119
"indexName" : "hotels-quickstart"
@@ -404,7 +404,7 @@ The [**nconf** package](https://github.com/indexzero/nconf) allows you to specif
404404
```javascript
405405
function getAzureConfiguration() {
406406
const config = nconf.file({ file: 'azure_search_config.json' });
407-
if (config.get('serviceName') === '[SEARCH_SERVICE_NAME' ) {
407+
if (config.get('serviceName') === '[SEARCH_SERVICE_NAME]' ) {
408408
throw new Error("You have not set the values in your azure_search_config.json file. Change them to match your search service's values.");
409409
}
410410
return config;
@@ -434,7 +434,7 @@ Finally, specify and call the main asynchronous `run` function. This function ca
434434
const run = async () => {
435435
try {
436436
const cfg = getAzureConfiguration();
437-
const client = new AzureSearchClient(cfg.get("serviceName"), cfg.get("adminKey"), cfg.get("queryKey"), cfg.get["serviceName"]);
437+
const client = new AzureSearchClient(cfg.get("serviceName"), cfg.get("adminKey"), cfg.get("queryKey"), cfg.get("indexName));
438438
439439
const exists = await client.indexExistsAsync();
440440
await exists ? client.deleteIndexAsync() : Promise.resolve();

0 commit comments

Comments
 (0)