Skip to content

Commit 37ac622

Browse files
committed
deleted obsolete python tutorial
1 parent ef5d511 commit 37ac622

6 files changed

+383
-900
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6750,6 +6750,11 @@
67506750
"redirect_url": "/azure/scheduler/migrate-from-scheduler-to-logic-apps",
67516751
"redirect_document_id": false
67526752
},
6753+
{
6754+
"source_path_from_root": "/articles/search/cognitive-search-tutorial-blob-python.md",
6755+
"redirect_url": "/azure/search/samples-python",
6756+
"redirect_document_id": false
6757+
},
67536758
{
67546759
"source_path_from_root": "/articles/search/semantic-ranking.md",
67556760
"redirect_url": "/azure/search/semantic-search-overview",

articles/search/TOC.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@
105105
href: cognitive-search-tutorial-blob-dotnet.md
106106
- name: REST
107107
href: cognitive-search-tutorial-blob.md
108-
- name: Python
109-
href: cognitive-search-tutorial-blob-python.md
110108
- name: Debug a skillset
111109
href: cognitive-search-tutorial-debug-sessions.md
112110
- name: Create a custom analyzer

articles/search/cognitive-search-tutorial-blob-dotnet.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Once content is extracted, the [skillset](cognitive-search-working-with-skillset
7575
7676
### Azure AI services
7777
78-
AI enrichment is backed by Azure AI services, including Language service and Azure AI Vision for natural language and image processing. For small workloads like this tutorial, you can use the free allocation of twenty transactions per indexer. For larger workloads, [attach an Azure AI Services multi-region resource to a skillset](cognitive-search-attach-cognitive-services.md) for pay-as-you-go pricing.
78+
AI enrichment is backed by Azure AI services, including Language service and Azure AI Vision for natural language and image processing. For small workloads like this tutorial, you can use the free allocation of 20 transactions per indexer. For larger workloads, [attach an Azure AI Services multi-region resource to a skillset](cognitive-search-attach-cognitive-services.md) for pay-as-you-go pricing.
7979
8080
### Azure AI Search
8181
@@ -109,7 +109,7 @@ For this project, install version 11 or later of the `Azure.Search.Documents` an
109109
110110
1. Browse for [Azure.Search.Document](https://www.nuget.org/packages/Azure.Search.Documents).
111111
112-
1. Select the latest version and then click **Install**.
112+
1. Select the latest version and then select **Install**.
113113
114114
1. Repeat the previous steps to install [Microsoft.Extensions.Configuration](https://www.nuget.org/packages/Microsoft.Extensions.Configuration) and [Microsoft.Extensions.Configuration.Json](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.Json).
115115
@@ -181,7 +181,7 @@ public static void Main(string[] args)
181181
182182
### Add function to exit the program during failure
183183

184-
This tutorial is meant to help you understand each step of the indexing pipeline. If there is a critical issue that prevents the program from creating the data source, skillset, index, or indexer the program will output the error message and exit so that the issue can be understood and addressed.
184+
This tutorial is meant to help you understand each step of the indexing pipeline. If there's a critical issue that prevents the program from creating the data source, skillset, index, or indexer the program will output the error message and exit so that the issue can be understood and addressed.
185185

186186
Add `ExitProgram` to `Main` to handle scenarios that require the program to exit.
187187

@@ -233,7 +233,7 @@ private static SearchIndexerDataSourceConnection CreateOrUpdateDataSource(Search
233233
}
234234
```
235235

236-
For a successful request, the method will return the data source that was created. If there is a problem with the request, such as an invalid parameter, the method will throw an exception.
236+
For a successful request, the method returns the data source that was created. If there's a problem with the request, such as an invalid parameter, the method throws an exception.
237237

238238
Now add a line in `Main` to call the `CreateOrUpdateDataSource` function that you've just added.
239239

@@ -271,7 +271,7 @@ For more information about skillset fundamentals, see [How to define a skillset]
271271

272272
### OCR skill
273273

274-
The [`OcrSkill`](/dotnet/api/azure.search.documents.indexes.models.ocrskill) extracts text from images. This skill assumes that a normalized_images field exists. To generate this field, later in the tutorial we'll set the ```"imageAction"``` configuration in the indexer definition to ```"generateNormalizedImages"```.
274+
The [`OcrSkill`](/dotnet/api/azure.search.documents.indexes.models.ocrskill) extracts text from images. This skill assumes that a normalized_images field exists. To generate this field, later in the tutorial we set the ```"imageAction"``` configuration in the indexer definition to ```"generateNormalizedImages"```.
275275

276276
```csharp
277277
private static OcrSkill CreateOcrSkill()
@@ -302,7 +302,7 @@ private static OcrSkill CreateOcrSkill()
302302

303303
### Merge skill
304304

305-
In this section, you'll create a [`MergeSkill`](/dotnet/api/azure.search.documents.indexes.models.mergeskill) that merges the document content field with the text that was produced by the OCR skill.
305+
In this section, you create a [`MergeSkill`](/dotnet/api/azure.search.documents.indexes.models.mergeskill) that merges the document content field with the text that was produced by the OCR skill.
306306

307307
```csharp
308308
private static MergeSkill CreateMergeSkill()
@@ -341,7 +341,7 @@ private static MergeSkill CreateMergeSkill()
341341

342342
### Language detection skill
343343

344-
The [`LanguageDetectionSkill`](/dotnet/api/azure.search.documents.indexes.models.languagedetectionskill) detects the language of the input text and reports a single language code for every document submitted on the request. We'll use the output of the **Language Detection** skill as part of the input to the **Text Split** skill.
344+
The [`LanguageDetectionSkill`](/dotnet/api/azure.search.documents.indexes.models.languagedetectionskill) detects the language of the input text and reports a single language code for every document submitted on the request. We use the output of the **Language Detection** skill as part of the input to the **Text Split** skill.
345345

346346
```csharp
347347
private static LanguageDetectionSkill CreateLanguageDetectionSkill()
@@ -370,7 +370,7 @@ private static LanguageDetectionSkill CreateLanguageDetectionSkill()
370370

371371
### Text split skill
372372

373-
The below [`SplitSkill`](/dotnet/api/azure.search.documents.indexes.models.splitskill) will split text by pages and limit the page length to 4,000 characters as measured by `String.Length`. The algorithm will try to split the text into chunks that are at most `maximumPageLength` in size. In this case, the algorithm will do its best to break the sentence on a sentence boundary, so the size of the chunk may be slightly less than `maximumPageLength`.
373+
The below [`SplitSkill`](/dotnet/api/azure.search.documents.indexes.models.splitskill) splits text by pages and limits the page length to 4,000 characters as measured by `String.Length`. The algorithm tries to split the text into chunks that are at most `maximumPageLength` in size. In this case, the algorithm does its best to break the sentence on a sentence boundary, so the size of the chunk might be slightly less than `maximumPageLength`.
374374

375375
```csharp
376376
private static SplitSkill CreateSplitSkill()
@@ -530,7 +530,7 @@ SearchIndexerSkillset skillset = CreateOrUpdateDemoSkillSet(indexerClient, skill
530530

531531
### Step 3: Create an index
532532

533-
In this section, you define the index schema by specifying which fields to include in the searchable index, and the search attributes for each field. Fields have a type and can take attributes that determine how the field is used (searchable, sortable, and so forth). Field names in an index are not required to identically match the field names in the source. In a later step, you add field mappings in an indexer to connect source-destination fields. For this step, define the index using field naming conventions pertinent to your search application.
533+
In this section, you define the index schema by specifying which fields to include in the searchable index, and the search attributes for each field. Fields have a type and can take attributes that determine how the field is used (searchable, sortable, and so forth). Field names in an index aren't required to identically match the field names in the source. In a later step, you add field mappings in an indexer to connect source-destination fields. For this step, define the index using field naming conventions pertinent to your search application.
534534

535535
This exercise uses the following fields and field types:
536536

@@ -544,13 +544,13 @@ This exercise uses the following fields and field types:
544544

545545
#### Create DemoIndex Class
546546

547-
The fields for this index are defined using a model class. Each property of the model class has attributes which determine the search-related behaviors of the corresponding index field.
547+
The fields for this index are defined using a model class. Each property of the model class has attributes that determine the search-related behaviors of the corresponding index field.
548548

549-
We'll add the model class to a new C# file. Right click on your project and select **Add** > **New Item...**, select "Class" and name the file `DemoIndex.cs`, then select **Add**.
549+
We'll add the model class to a new C# file. Right select on your project and select **Add** > **New Item...**, select "Class" and name the file `DemoIndex.cs`, then select **Add**.
550550

551551
Make sure to indicate that you want to use types from the `Azure.Search.Documents.Indexes` and `System.Text.Json.Serialization` namespaces.
552552

553-
Add the below model class definition to `DemoIndex.cs` and include it in the same namespace where you'll create the index.
553+
Add the below model class definition to `DemoIndex.cs` and include it in the same namespace where you create the index.
554554

555555
```csharp
556556
using Azure.Search.Documents.Indexes;
@@ -585,7 +585,7 @@ namespace EnrichwithAI
585585
}
586586
```
587587

588-
Now that you've defined a model class, back in `Program.cs` you can create an index definition fairly easily. The name for this index will be `demoindex`. If an index already exists with that name, it will be deleted.
588+
Now that you've defined a model class, back in `Program.cs` you can create an index definition fairly easily. The name for this index will be `demoindex`. If an index already exists with that name, it's deleted.
589589

590590
```csharp
591591
private static SearchIndex CreateDemoIndex(SearchIndexClient indexClient)
@@ -620,7 +620,7 @@ private static SearchIndex CreateDemoIndex(SearchIndexClient indexClient)
620620
}
621621
```
622622

623-
During testing, you may find that you're attempting to create the index more than once. Because of this, check to see if the index that you're about to create already exists before attempting to create it.
623+
During testing, you might find that you're attempting to create the index more than once. Because of this, check to see if the index that you're about to create already exists before attempting to create it.
624624

625625
Add the following lines to `Main`.
626626

@@ -630,7 +630,7 @@ Console.WriteLine("Creating the index...");
630630
SearchIndex demoIndex = CreateDemoIndex(indexClient);
631631
```
632632

633-
Add the following using statement to resolve the disambiguate reference.
633+
Add the following using statement to resolve the disambiguated reference.
634634

635635
```csharp
636636
using Index = Azure.Search.Documents.Indexes.Models;
@@ -776,7 +776,7 @@ private static void CheckIndexerOverallStatus(SearchIndexerClient indexerClient,
776776

777777
`demoIndexerExecutionInfo` represents the current status and execution history of an indexer.
778778

779-
Warnings are common with some source file and skill combinations and do not always indicate a problem. In this tutorial, the warnings are benign (for example, no text inputs from the JPEG files).
779+
Warnings are common with some source file and skill combinations and don't always indicate a problem. In this tutorial, the warnings are benign (for example, no text inputs from the JPEG files).
780780

781781
Add the following lines to `Main`.
782782

0 commit comments

Comments
 (0)