Skip to content

Commit ca7e231

Browse files
committed
remove -v4
1 parent 2a7d556 commit ca7e231

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

articles/search/tutorial-javascript-create-load-index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Continue to build your search-enabled website by following these steps:
1818

1919
* Create a search resource
2020
* Create a new index
21-
* Import data with JavaScript using the [bulk_insert_books script](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/main/search-website-functions-v4/bulk-insert-v4/bulk_insert_books.js) and Azure SDK [@azure/search-documents](https://www.npmjs.com/package/@azure/search-documents).
21+
* Import data with JavaScript using the [bulk_insert_books script](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/main/search-website-functions-v4/bulk-insert/bulk_insert_books.js) and Azure SDK [@azure/search-documents](https://www.npmjs.com/package/@azure/search-documents).
2222

2323
## Create an Azure Cognitive Search resource
2424

@@ -31,22 +31,22 @@ The ESM script uses the Azure SDK for Cognitive Search:
3131
* [npm package @azure/search-documents](https://www.npmjs.com/package/@azure/search-documents)
3232
* [Reference Documentation](/javascript/api/overview/azure/search-documents-readme)
3333

34-
1. In Visual Studio Code, open the `bulk_insert_books.js` file in the subdirectory, `search-website-functions-v4/bulk-insert-v4`, replace the following variables with your own values to authenticate with the Azure Search SDK:
34+
1. In Visual Studio Code, open the `bulk_insert_books.js` file in the subdirectory, `search-website-functions-v4/bulk-insert`, replace the following variables with your own values to authenticate with the Azure Search SDK:
3535

3636
* YOUR-SEARCH-RESOURCE-NAME
3737
* YOUR-SEARCH-ADMIN-KEY
3838

39-
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/bulk-insert-v4/bulk_insert_books.js" :::
39+
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/bulk-insert/bulk_insert_books.js" :::
4040

41-
1. Open an integrated terminal in Visual Studio for the project directory's subdirectory, `search-website-functions-v4/bulk-insert-v4`, and run the following command to install the dependencies.
41+
1. Open an integrated terminal in Visual Studio for the project directory's subdirectory, `search-website-functions-v4/bulk-insert`, and run the following command to install the dependencies.
4242

4343
```bash
4444
npm install
4545
```
4646

4747
## Run the bulk import script for Search
4848

49-
1. Continue using the integrated terminal in Visual Studio for the project directory's subdirectory, `search-website-functions-v4/bulk-insert-v4`, to run the following bash command to run the `bulk_insert_books.js` script:
49+
1. Continue using the integrated terminal in Visual Studio for the project directory's subdirectory, `search-website-functions-v4/bulk-insert`, to run the following bash command to run the `bulk_insert_books.js` script:
5050
5151
```javascript
5252
npm start

articles/search/tutorial-javascript-overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ The [sample](https://github.com/Azure-Samples/azure-search-javascript-samples/tr
3030

3131
|App|Purpose|GitHub<br>Repository<br>Location|
3232
|--|--|--|
33-
|Client|React app (presentation layer) to display books, with search. It calls the Azure Function app. |[/search-website-functions-v4/client-v4](https://github.com/Azure-Samples/azure-search-javascript-samples/tree/master/search-website-functions-v4/client-v4)|
34-
|Server|Azure Function app (business layer) - calls the Azure Cognitive Search API using JavaScript SDK |[/search-website-functions-v4/api-v4](https://github.com/Azure-Samples/azure-search-javascript-samples/tree/master/search-website-functions-v4/api-v4)|
35-
|Bulk insert|JavaScript file to create the index and add documents to it.|[/search-website-functions-v4/bulk-insert-v4](https://github.com/Azure-Samples/azure-search-javascript-samples/tree/master/search-website-functions-v4/bulk-insert-v4)|
33+
|Client|React app (presentation layer) to display books, with search. It calls the Azure Function app. |[/search-website-functions-v4/client](https://github.com/Azure-Samples/azure-search-javascript-samples/tree/master/search-website-functions-v4/client)|
34+
|Server|Azure Function app (business layer) - calls the Azure Cognitive Search API using JavaScript SDK |[/search-website-functions-v4/api](https://github.com/Azure-Samples/azure-search-javascript-samples/tree/master/search-website-functions-v4/api)|
35+
|Bulk insert|JavaScript file to create the index and add documents to it.|[/search-website-functions-v4/bulk-insert](https://github.com/Azure-Samples/azure-search-javascript-samples/tree/master/search-website-functions-v4/bulk-insert)|
3636

3737
## Set up your development environment
3838

articles/search/tutorial-javascript-search-query-integration.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,47 +29,47 @@ The Function app authenticates through the SDK to the cloud-based Cognitive Sear
2929

3030
## Configure secrets in a configuration file
3131

32-
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/api-v4/src/lib/config.js":::
32+
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/api/src/lib/config.js":::
3333

3434
## Azure Function: Search the catalog
3535

36-
The [Search API](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/master/search-website-functions-v4/api-v4/src/functions/search.js) takes a search term and searches across the documents in the search index, returning a list of matches.
36+
The [Search API](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/master/search-website-functions-v4/api/src/functions/search.js) takes a search term and searches across the documents in the search index, returning a list of matches.
3737

3838
The Azure Function pulls in the search configuration information, and fulfills the query.
3939

40-
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/api-v4/src/functions/search.js" :::
40+
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/api/src/functions/search.js" :::
4141

4242
## Client: Search from the catalog
4343

4444
Call the Azure Function in the React client with the following code.
4545

46-
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/client-v4/src/pages/Search/Search.js" highlight="41-52" :::
46+
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/client/src/pages/Search/Search.js" highlight="41-52" :::
4747

4848
## Azure Function: Suggestions from the catalog
4949

50-
The [Suggest API](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/master/search-website-functions-v4/api-v4/src/functions/suggest.js) takes a search term while a user is typing and suggests search terms such as book titles and authors across the documents in the search index, returning a small list of matches.
50+
The [Suggest API](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/master/search-website-functions-v4/api/src/functions/suggest.js) takes a search term while a user is typing and suggests search terms such as book titles and authors across the documents in the search index, returning a small list of matches.
5151

52-
The search suggester, `sg`, is defined in the [schema file](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/master/search-website-functions-v4/bulk-insert-v4/good-books-index.json) used during bulk upload.
52+
The search suggester, `sg`, is defined in the [schema file](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/master/search-website-functions-v4/bulk-insert/good-books-index.json) used during bulk upload.
5353

54-
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/api-v4/src/functions/suggest.js" :::
54+
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/api/src/functions/suggest.js" :::
5555

5656
## Client: Suggestions from the catalog
5757

5858
The Suggest function API is called in the React app at `\src\components\SearchBar\SearchBar.js` as part of component initialization:
5959

60-
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/client-v4/src/components/SearchBar/SearchBar.js" highlight="52-60" :::
60+
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/client/src/components/SearchBar/SearchBar.js" highlight="52-60" :::
6161

6262
## Azure Function: Get specific document
6363

64-
The [Lookup API](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/master/search-website-functions-v4/api-v4/src/functions/lookup.js) takes an ID and returns the document object from the search index.
64+
The [Lookup API](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/master/search-website-functions-v4/api/src/functions/lookup.js) takes an ID and returns the document object from the search index.
6565

66-
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/api-v4/src/functions/lookup.js" :::
66+
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/api/src/functions/lookup.js" :::
6767

6868
## Client: Get specific document
6969

7070
This function API is called in the React app at `\src\pages\Details\Detail.js` as part of component initialization:
7171

72-
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/client-v4/src/pages/Details/Details.js" highlight="20-30" :::
72+
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/client/src/pages/Details/Details.js" highlight="20-30" :::
7373

7474
## Next steps
7575

0 commit comments

Comments
 (0)