Skip to content

Commit bff1b7d

Browse files
committed
refresh-oct-gmndrg
1 parent db0a950 commit bff1b7d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

articles/search/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ items:
7878
href: search-howto-powerapps.md
7979
- name: Indexing tutorials
8080
items:
81-
- name: Index any data
81+
- name: Optimize indexing
8282
href: tutorial-optimize-indexing-push-api.md
8383
- name: Index at scale (Apache Spark)
8484
href: search-synapseml-cognitive-services.md

articles/search/tutorial-optimize-indexing-push-api.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: 'C# tutorial: Optimize indexing with the push API'
2+
title: 'C# tutorial: Optimize indexing by using the push API'
33
titleSuffix: Azure AI Search
4-
description: Learn how to efficiently index data using Azure AI Search's push API. This tutorial and sample code are in C#.
4+
description: Learn how to efficiently index data by using Azure AI Search's push API. This tutorial and sample code are in C#.
55
author: gmndrg
66
ms.author: gimondra
77
ms.service: azure-ai-search
@@ -12,7 +12,7 @@ ms.custom:
1212
- ignite-2023
1313
---
1414

15-
# Tutorial: Optimize indexing with the push API
15+
# Tutorial: Optimize indexing by using the push API
1616

1717
Azure AI Search supports [two basic approaches](search-what-is-data-import.md) for importing data into a search index: *push* your data into the index programmatically, or *pull* in the data by pointing an [Azure AI Search indexer](search-indexer-overview.md) at a supported data source.
1818

@@ -70,7 +70,7 @@ This tutorial uses key-based authentication. Copy an admin API key to paste into
7070

7171
1. Start Visual Studio and open *OptimizeDataIndexing.sln*.
7272

73-
1. In Solution Explorer, open *appsettings.json* to provide connection information.
73+
1. In Solution Explorer, open *appsettings.json* to provide your service's connection information.
7474

7575
```json
7676
{
@@ -88,15 +88,15 @@ This code is derived from the C# section of [Quickstart: Full text search using
8888

8989
This simple C#/.NET console app performs the following tasks:
9090

91-
+ Creates a new index based on the data structure of the C# `Hotel` class (which also references the `Address` class).
91+
+ Creates a new index based on the data structure of the C# `Hotel` class (which also references the `Address` class)
9292
+ Tests various batch sizes to determine the most efficient size
9393
+ Indexes data asynchronously
9494
+ Using multiple threads to increase indexing speeds
9595
+ Using an exponential backoff retry strategy to retry failed items
9696

9797
Before running the program, take a minute to study the code and the index definitions for this sample. The relevant code is in several files:
9898

99-
+ *Hotel.cs* and *Address.cs* contains the schema that defines the index
99+
+ *Hotel.cs* and *Address.cs* contain the schema that defines the index
100100
+ *DataGenerator.cs* contains a simple class to make it easy to create large amounts of hotel data
101101
+ *ExponentialBackoff.cs* contains code to optimize the indexing process as described in this article
102102
+ *Program.cs* contains functions that create and delete the Azure AI Search index, indexes batches of data, and tests different batch sizes
@@ -242,8 +242,8 @@ Identify which batch size is most efficient and then use that batch size in the
242242

243243
Now that you identified the batch size you intend to use, the next step is to begin to index the data. To index data efficiently, this sample:
244244

245-
+ uses multiple threads/workers.
246-
+ implements an exponential backoff retry strategy.
245+
+ uses multiple threads/workers
246+
+ implements an exponential backoff retry strategy
247247

248248
Uncomment lines 41 through 49, and then rerun the program. On this run, the sample generates and sends batches of documents, up to 100,000 if you run the code without changing the parameters.
249249

@@ -360,7 +360,7 @@ After the function is finished running, you can verify that all of the documents
360360

361361
## Step 6: Explore the index
362362

363-
You can explore the populated search index after the program has run programmatically or by using the [Search explorer](search-explorer.md) in the portal.
363+
You can explore the populated search index after the program has run either programmatically or by using the [Search explorer](search-explorer.md) in the portal.
364364

365365
### Programatically
366366

0 commit comments

Comments
 (0)