Skip to content

Commit db47a1a

Browse files
committed
cleaned up links to code repo for python search
1 parent 3380b64 commit db47a1a

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

articles/search/tutorial-python-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Forking the sample repository is critical to be able to deploy the static web ap
5959
Replace `YOUR-GITHUB-ALIAS` with your GitHub alias.
6060

6161
```bash
62-
git clone https://github.com/YOUR-GITHUB-ALIAS/azure-search-python-samples
62+
git clone https://github.com/YOUR-GITHUB-ALIAS/azure-search-python-samples.git
6363
```
6464

6565
1. In Visual Studio Code, open your local folder of the cloned repository. The remaining tasks are accomplished from Visual Studio Code, unless specified.

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

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.devlang: python
1717
In the previous lessons, you added search to a Static Web App. This lesson highlights the essential steps that establish integration. If you're looking for a cheat sheet on how to integrate search into your Python app, this article explains what you need to know.
1818

1919
The application is available:
20-
* [Sample](https://github.com/Azure-Samples/azure-search-python-samples/tree/master/search-website-functions-v4)
20+
* [Sample](https://github.com/Azure-Samples/azure-search-python-samples/tree/main/search-website-functions-v4)
2121
* [Demo website - aka.ms/azs-good-books](https://aka.ms/azs-good-books)
2222

2323
## Azure SDK azure-search-documents
@@ -37,9 +37,7 @@ The Azure Function app settings environment variables are pulled in from a file,
3737

3838
## Azure Function: Search the catalog
3939

40-
The Search [API](https://github.com/Azure-Samples/azure-search-python-samples/blob/master/search-website-functions-v4/api/search.py) takes a search term and searches across the documents in the Search Index, returning a list of matches.
41-
42-
Routing for the Search API is contained in the [function.json](https://github.com/Azure-Samples/azure-search-python-samples/blob/master/search-website-functions-v4/api/Search/function.json) bindings.
40+
The Search [API](https://github.com/Azure-Samples/azure-search-python-samples/blob/main/search-website-functions-v4/api/search.py) takes a search term and searches across the documents in the Search Index, returning a list of matches.
4341

4442
The Azure Function pulls in the search configuration information, and fulfills the query.
4543

@@ -53,11 +51,9 @@ Call the Azure Function in the React client with the following code.
5351

5452
## Azure Function: Suggestions from the catalog
5553

56-
The `Suggest` [API](https://github.com/Azure-Samples/azure-search-python-samples/blob/master/search-website-functions-v4/api/suggest.py) 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.
57-
58-
The search suggester, `sg`, is defined in the [schema file](https://github.com/Azure-Samples/azure-search-python-samples/blob/master/search-website-functions-v4/bulk-upload/good-books-index.json) used during bulk upload.
54+
The `Suggest` [API](https://github.com/Azure-Samples/azure-search-python-samples/blob/main/search-website-functions-v4/api/suggest.py) 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.
5955

60-
Routing for the Suggest API is contained in the [function.json](https://github.com/Azure-Samples/azure-search-python-samples/blob/master/search-website-functions-v4/api/Suggest/function.json) bindings.
56+
The search suggester, `sg`, is defined in the [schema file](https://github.com/Azure-Samples/azure-search-python-samples/blob/main/search-website-functions-v4/bulk-upload/good-books-index.json) used during bulk upload.
6157

6258
:::code language="python" source="~/azure-search-python-samples/search-website-functions-v4/api/suggest.py" :::
6359

@@ -69,9 +65,7 @@ The Suggest function API is called in the React app at `client\src\components\Se
6965

7066
## Azure Function: Get specific document
7167

72-
The `Lookup` [API](https://github.com/Azure-Samples/azure-search-python-samples/blob/master/search-website-functions-v4/api/lookup.py) takes an ID and returns the document object from the Search Index.
73-
74-
Routing for the Lookup API is contained in the [function.json](https://github.com/Azure-Samples/azure-search-python-samples/blob/master/search-website-functions-v4/api/Lookup/function.json) bindings.
68+
The `Lookup` [API](https://github.com/Azure-Samples/azure-search-python-samples/blob/main/search-website-functions-v4/api/lookup.py) takes an ID and returns the document object from the Search Index.
7569

7670
:::code language="python" source="~/azure-search-python-samples/search-website-functions-v4/api/lookup.py" :::
7771

0 commit comments

Comments
 (0)