Skip to content

Commit be0a6c6

Browse files
Merge pull request #229980 from HeidiSteen/heidist-refresh
[azure search] Refreshed metadata for several tutorials
2 parents d1e9588 + d14722d commit be0a6c6

6 files changed

+26
-26
lines changed

articles/search/search-howto-powerapps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: HeidiSteen
77
ms.author: heidist
88
ms.service: cognitive-search
99
ms.topic: tutorial
10-
ms.date: 12/07/2021
10+
ms.date: 02/07/2023
1111
---
1212

1313
# Tutorial: Query a Cognitive Search index from Power Apps

articles/search/tutorial-csharp-create-first-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: C# tutorial to create your first app
2+
title: Create a search app in C#
33
titleSuffix: Azure Cognitive Search
4-
description: Learn how to build your first C# search app step by step. The tutorial provides both a download link to a working app on GitHub, and the complete process to build the app from scratch.
4+
description: In this Azure Cognitive Search tutorial, learn how to create a search app using the Azure .NET SDK.
55

66
manager: nitinme
77
author: HeidiSteen
@@ -13,7 +13,7 @@ ms.date: 07/01/2022
1313
ms.custom: devx-track-csharp
1414
---
1515

16-
# Tutorial: Create your first search app using the .NET SDK
16+
# Tutorial: Create your first search app in Azure Cognitive Search using the .NET SDK
1717

1818
This tutorial shows you how to create a web app that queries and returns results from a search index using Azure Cognitive Search and Visual Studio.
1919

articles/search/tutorial-csharp-facets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: C# tutorial on using facets to aid navigation
2+
title: Add facets to search app
33
titleSuffix: Azure Cognitive Search
4-
description: Continue from "Paging results" to add faceted navigation. Learn how facets can be used to easily narrow a search.
4+
description: In this Azure Cognitive Search tutorial, learn how to facet and filter over search results.
55

66
manager: nitinme
77
author: HeidiSteen

articles/search/tutorial-csharp-orders.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: C# tutorial on ordering results
2+
title: Order results in search app
33
titleSuffix: Azure Cognitive Search
4-
description: This C# tutorial demonstrates how to order search results. It builds on a previous hotels project, sorting by primary property, secondary property, and includes a scoring profile to add boosting criteria.
4+
description: In this Azure Cognitive Search tutorial, learn how to sort results and influence search rank.
55

66
manager: nitinme
77
author: HeidiSteen

articles/search/tutorial-csharp-paging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: C# tutorial on search results pagination
2+
title: Page results in search app
33
titleSuffix: Azure Cognitive Search
4-
description: Add pagination and navigation buttons to search results, building on an existing hotels project to add first, next, previous, last, and numbered buttons. A second paging system uses infinite scrolling, triggered by moving a vertical scroll bar to its lower limit.
4+
description: In this tutorial for Azure Cognitive Search, add pagination and navigation buttons to search results.
55

66
manager: nitinme
77
author: HeidiSteen

articles/search/tutorial-csharp-type-ahead-and-suggestions.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: C# tutorial on autocomplete and suggestions
2+
title: Add autocomplete and suggestions to search app
33
titleSuffix: Azure Cognitive Search
4-
description: Add autocomplete and suggestions to collect search term input from users using dropdown list. This tutorial builds on an existing hotels project.
4+
description: In this tutorial for Azure Cognitive Search, add autocomplete and suggestions based on search term inputs.
55

66
manager: nitinme
77
author: HeidiSteen
@@ -15,7 +15,7 @@ ms.custom: "devx-track-js, devx-track-csharp"
1515

1616
# Tutorial: Add autocomplete and suggestions using the .NET SDK
1717

18-
Learn how to implement autocomplete (typeahead queries and suggested results) when a user starts typing into a search box. In this tutorial, we will show autocompleted queries and suggested results separately, and then together. A user may only have to type two or three characters to locate all the results that are available.
18+
Learn how to implement autocomplete (typeahead queries and suggested results) when a user starts typing into a search box. In this tutorial, we'll show autocompleted queries and suggested results separately, and then together. A user may only have to type two or three characters to locate all the results that are available.
1919

2020
In this tutorial, you learn how to:
2121
> [!div class="checklist"]
@@ -82,7 +82,7 @@ Let's start with the simplest case of offering up alternatives to the user: a dr
8282
</head>
8383
```
8484

85-
2. Because we are introducing a new jQuery reference, we also need to remove, or comment out, the default jQuery reference in the _Layout.cshtml file (in the **Views/Shared** folder). Locate the following lines, and comment out the first script line as shown. This change avoids clashing references to jQuery.
85+
2. Because we're introducing a new jQuery reference, we also need to remove, or comment out, the default jQuery reference in the _Layout.cshtml file (in the **Views/Shared** folder). Locate the following lines, and comment out the first script line as shown. This change avoids clashing references to jQuery.
8686

8787
```html
8888
<environment include="Development">
@@ -131,7 +131,7 @@ Let's start with the simplest case of offering up alternatives to the user: a dr
131131

132132
The **Size** parameter specifies how many results to return (if unspecified, the default is 5). A _suggester_ is specified on the search index when the index is created. In the sample hotels index hosted by Microsoft, the suggester name is "sg", and it searches for suggested matches exclusively in the **HotelName** field.
133133

134-
Fuzzy matching allows "near misses" to be included in the output, up to one edit distance. If the **highlights** parameter is set to true, then bold HTML tags are added to the output. We will set both parameters to true in the next section.
134+
Fuzzy matching allows "near misses" to be included in the output, up to one edit distance. If the **highlights** parameter is set to true, then bold HTML tags are added to the output. We'll set both parameters to true in the next section.
135135

136136
2. You may get some syntax errors. If so, add the following two **using** statements to the top of the file.
137137

@@ -150,7 +150,7 @@ Let's start with the simplest case of offering up alternatives to the user: a dr
150150

151151
:::image type="content" source="media/tutorial-csharp-create-first-app/azure-search-suggest-fuzzy.png" alt-text="Typing *pa* with fuzzy set to true" border="false":::
152152

153-
If you are interested, the [Lucene query syntax in Azure Cognitive Search](./query-lucene-syntax.md) describes the logic used in fuzzy searches in detail.
153+
If you're interested, the [Lucene query syntax in Azure Cognitive Search](./query-lucene-syntax.md) describes the logic used in fuzzy searches in detail.
154154

155155
## Add highlighting to the suggestions
156156

@@ -195,13 +195,13 @@ We can improve the appearance of the suggestions to the user by setting the **hi
195195

196196
:::image type="content" source="media/tutorial-csharp-create-first-app/azure-search-suggest-highlight.png" alt-text="Typing *pa* with highlighting" border="false":::
197197

198-
The logic used in the highlighting script above is not foolproof. If you enter a term that appears twice in the same name, the bolded results are not quite what you would want. Try typing "mo".
198+
The logic used in the highlighting script above isn't foolproof. If you enter a term that appears twice in the same name, the bolded results aren't quite what you would want. Try typing "mo".
199199

200-
One of the questions a developer needs to answer is, when is a script working "well enough", and when should its quirks be addressed. We will not be taking highlighting any further in this tutorial, but finding a precise algorithm is something to consider if highlighting is not effective for your data. For more information, see [Hit highlighting](search-pagination-page-layout.md#hit-highlighting).
200+
One of the questions a developer needs to answer is, when is a script working "well enough", and when should its quirks be addressed. We won't be taking highlighting any further in this tutorial, but finding a precise algorithm is something to consider if highlighting isn't effective for your data. For more information, see [Hit highlighting](search-pagination-page-layout.md#hit-highlighting).
201201

202202
## Add autocomplete
203203

204-
Another variation, slightly different from suggestions, is autocompletion (sometimes called "type-ahead") that completes a query term. Again, we will start with the simplest implementation, before improving the user experience.
204+
Another variation, slightly different from suggestions, is autocompletion (sometimes called "type-ahead") that completes a query term. Again, we'll start with the simplest implementation, before improving the user experience.
205205

206206
1. Enter the following script into the view, following your previous scripts.
207207

@@ -246,9 +246,9 @@ Another variation, slightly different from suggestions, is autocompletion (somet
246246
}
247247
```
248248

249-
Notice that we are using the same *suggester* function, called "sg", in the autocomplete search as we did for suggestions (so we are only trying to autocomplete the hotel names).
249+
Notice that we're using the same *suggester* function, called "sg", in the autocomplete search as we did for suggestions (so we're only trying to autocomplete the hotel names).
250250

251-
There are a range of **AutocompleteMode** settings, and we are using **OneTermWithContext**. Refer to [Autocomplete API](/rest/api/searchservice/autocomplete) for a description of additional options.
251+
There are a range of **AutocompleteMode** settings, and we're using **OneTermWithContext**. Refer to [Autocomplete API](/rest/api/searchservice/autocomplete) for a description of additional options.
252252

253253
1. Run the app. Notice how the range of options displayed in the drop-down list are single words. Try typing words starting with "re". Notice how the number of options reduces as more letters are typed.
254254

@@ -260,9 +260,9 @@ Another variation, slightly different from suggestions, is autocompletion (somet
260260

261261
Combining autocompletion and suggestions is the most complex of our options, and probably provides the best user experience. What we want is to display, inline with the text that is being typed, is the first choice of Azure Cognitive Search for autocompleting the text. Also, we want a range of suggestions as a drop-down list.
262262

263-
There are libraries that offer this functionality - often called "inline autocompletion" or a similar name. However, we are going to natively implement this feature so that you can explore the APIs. We are going to start work on the controller first in this example.
263+
There are libraries that offer this functionality - often called "inline autocompletion" or a similar name. However, we're going to natively implement this feature so that you can explore the APIs. We're going to start work on the controller first in this example.
264264

265-
1. Add an action to the controller that returns just one autocompletion result, along with a specified number of suggestions. We will call this action **AutoCompleteAndSuggestAsync**. In the home controller, add the following action, following your other new actions.
265+
1. Add an action to the controller that returns just one autocompletion result, along with a specified number of suggestions. We'll call this action **AutoCompleteAndSuggestAsync**. In the home controller, add the following action, following your other new actions.
266266

267267
```cs
268268
public async Task<ActionResult> AutoCompleteAndSuggestAsync(string term)
@@ -325,9 +325,9 @@ There are libraries that offer this functionality - often called "inline autocom
325325
</div>
326326
```
327327

328-
Notice we are changing the ID again, to **azureautocomplete** in this case.
328+
Notice we're changing the ID again, to **azureautocomplete** in this case.
329329

330-
1. Also in the view, enter the following script, after all the scripts you have entered so far. The script is lengthy and complex due to the variety of input behaviors that it handles.
330+
1. Also in the view, enter the following script, after all the scripts you've entered so far. The script is lengthy and complex due to the variety of input behaviors that it handles.
331331

332332
```javascript
333333
<script>
@@ -452,7 +452,7 @@ There are libraries that offer this functionality - often called "inline autocom
452452

453453
1. Try tabbing to accept the autocomplete suggestion, and try selecting suggestions using the arrow keys and tab key, and try again using the mouse and a single click. Verify that the script handles all these situations neatly.
454454

455-
You may decide that it is simpler to load in a library that offers this feature for you, but now you know at least one way to get inline autocompletion to work.
455+
You may decide that it's simpler to load in a library that offers this feature for you, but now you know at least one way to get inline autocompletion to work.
456456

457457
## Takeaways
458458

0 commit comments

Comments
 (0)