You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains JavaScript sample code used in Azure Search quickstarts, tutorials, and examples.
3
+
This repository contains JavaScript sample code used in Azure Cognitive Search quickstarts, tutorials, and examples.
4
4
5
5
## Quickstart
6
6
7
-
This Node.js console app uses the Azure Search REST API to create an index, load it with documents, and execute a few queries. The index is modeled on a subset of the Hotels dataset, reduced for readability and comprehension. Index definition and documents are included in the code.
7
+
This Node.js console app uses the Azure Cognitive Search REST APIs to create an index, load it with documents, and execute a few queries. The index is modeled on a subset of the Hotels dataset, reduced for readability and comprehension. Index definition and documents are included in the code.
Copy file name to clipboardExpand all lines: quickstart/README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,31 +3,31 @@ page_type: sample
3
3
languages:
4
4
- javascript
5
5
- nodejs
6
-
name: Azure Search Quickstart in Node.js
7
-
description: "Learn basic steps for creating, loading, and querying an Azure Search index using REST APIs and Node.js."
6
+
name: Azure Cognitive Search Quickstart in Node.js
7
+
description: "Learn basic steps for creating, loading, and querying an Azure Cognitive Search index using REST APIs and Node.js."
8
8
products:
9
9
- azure
10
-
- azure-search
10
+
- cognitive-search
11
11
urlFragment: nodejs-quickstart
12
12
---
13
13
14
-
# Quickstart sample for Azure Search with Node.js
14
+
# Quickstart sample for Azure Cognitive Search with Node.js
15
15
16
16

17
17
18
-
Demonstrates using Node.js and the Azure Search REST API to create an index, load it with documents, and execute a few queries. The index is modeled on a subset of the Hotels dataset, reduced for readability and comprehension. Index definition and documents are included in the code.
18
+
Demonstrates using Node.js and the Azure Cognitive Search REST APIs to create an index, load it with documents, and execute a few queries. The index is modeled on a subset of the Hotels dataset, reduced for readability and comprehension. Index definition and documents are included in the code.
19
19
20
-
This Node.js console application is featured in [Node.js Quickstart: Create, load, and query indexes using Azure Search REST APIs](https://docs.microsoft.com/azure/search/search-get-started-nodejs). When you run the program, a console window emits output messages for each step: deleting and then re-creating a hotels-quickstart index, loading documents, running queries. This sample uses the [REST API](https://docs.microsoft.com/en-us/rest/api/searchservice/) and runs on an Azure Search service using connection information that you provide.
20
+
This Node.js console application is featured in [Node.js Quickstart: Create, load, and query indexes using Azure Cognitive Search REST APIs](https://docs.microsoft.com/azure/search/search-get-started-nodejs). When you run the program, a console window emits output messages for each step: deleting and then re-creating a hotels-quickstart index, loading documents, running queries. This sample uses the [REST API](https://docs.microsoft.com/en-us/rest/api/searchservice/) and runs on a search service using connection information that you provide.
21
21
22
22
## Contents
23
23
24
24
| File/folder | Description |
25
25
|-------------|-------------|
26
26
|`index.js`| The main program |
27
-
|`AzureSearchClient.js`| Defines a class that can makes Azure Search REST API requests. |
27
+
|`AzureSearchClient.js`| Defines a class that can makes REST API requests. |
|`hotels_quickstart_index.json`| Specifies the structure of the Azure Search index. |
30
-
|`hotels.json`| A small amount of sample data to populate Azure Search. |
29
+
|`hotels_quickstart_index.json`| Specifies the structure of a search index. |
30
+
|`hotels.json`| A small amount of sample data to populate the index. |
31
31
|`package.json`| The Node project definition file. |
32
32
|`package-lock.json`| The version dependencies of the project. |
33
33
|`.eslintrc`| Coding standards used by [ESLint](https://eslint.org/). |
@@ -41,7 +41,7 @@ This Node.js console application is featured in [Node.js Quickstart: Create, loa
41
41
42
42
+[Node.js](https://nodejs.org).
43
43
+[NPM](https://www.npmjs.com) should be installed by Node.js.
44
-
+[Create an Azure Search service](search-create-service-portal.md) or [find an existing service](https://ms.portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices) under your current subscription. You can use a free service for this quickstart.
44
+
+[Create a search service in the portal](search-create-service-portal.md) or [find an existing service](https://ms.portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices) under your current subscription. You can use a free service for this quickstart.
45
45
46
46
Recommended:
47
47
@@ -87,5 +87,5 @@ The `run` function :
87
87
88
88
## Next steps
89
89
90
-
You can learn more about Azure Search on the [official documentation site](https://docs.microsoft.com/azure/search/).
90
+
You can learn more about Azure Cognitive Search on the [official documentation site](https://docs.microsoft.com/azure/search/).
0 commit comments