Skip to content

Commit 1d074b5

Browse files
Merge pull request #230161 from HeidiSteen/heidist-refresh
[azure search] Replace c# tutorial, phase 1
2 parents 227da57 + 76a4024 commit 1d074b5

10 files changed

+505
-29
lines changed

articles/search/TOC.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@
7676
- name: Deploy static web app
7777
href: tutorial-python-deploy-static-web-app.md
7878
- name: Explore the code
79-
href: tutorial-python-search-query-integration.md
79+
href: tutorial-python-search-query-integration.md
80+
- name: Add search to ASP.NET Core (MVC)
81+
href: tutorial-csharp-create-mvc-app.md
8082
- name: Index with indexers
8183
items:
8284
- name: Index Azure SQL Database
@@ -105,18 +107,6 @@
105107
href: tutorial-create-custom-analyzer.md
106108
- name: Query from Power Apps
107109
href: search-howto-powerapps.md
108-
- name: Create a C# app
109-
items:
110-
- name: 1 - Basic search page
111-
href: tutorial-csharp-create-first-app.md
112-
- name: 2 - Add results paging
113-
href: tutorial-csharp-paging.md
114-
- name: 3 - Add type-ahead
115-
href: tutorial-csharp-type-ahead-and-suggestions.md
116-
- name: 4 - Add facets
117-
href: tutorial-csharp-facets.md
118-
- name: 5 - Add results ordering
119-
href: tutorial-csharp-orders.md
120110
- name: Samples
121111
items:
122112
- name: C# samples

articles/search/index-add-suggesters.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ POST /indexes/myxboxgames/docs/autocomplete?search&api-version=2020-06-30
169169

170170
+ [Add search to a web site (JavaScript)](tutorial-javascript-search-query-integration.md#azure-function-suggestions-from-the-catalog) uses an open source Suggestions package for partial term completion in the client app.
171171

172-
+ [Create your first app in C# (lesson 3 - Add search-as-you-type)](tutorial-csharp-type-ahead-and-suggestions.md) sample demonstrates suggested queries, autocomplete, and faceted navigation. This code provides native support for typeahead instead of using a widget.
173-
174172
## Next steps
175173

176174
Learn more about requests\ formulation.
81.9 KB
Loading

articles/search/samples-dotnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Code samples from the Cognitive Search team demonstrate features and workflows.
5454
| [multiple-data-sources](https://github.com/Azure-Samples/azure-search-dotnet-samples/tree/master/multiple-data-sources) | [Tutorial: Index from multiple data sources](tutorial-multiple-data-sources.md). | Merges content from two data sources into one search index.
5555
| [Optimize-data-indexing](https://github.com/Azure-Samples/azure-search-dotnet-samples/tree/master/optimize-data-indexing) | [Tutorial: Optimize indexing with the push API](tutorial-optimize-indexing-push-api.md).| Demonstrates optimization techniques for pushing data into a search index. |
5656
| [tutorial-ai-enrichment](https://github.com/Azure-Samples/azure-search-dotnet-samples/tree/master/tutorial-ai-enrichment) | [Tutorial: AI-generated searchable content from Azure blobs](cognitive-search-tutorial-blob-dotnet.md) | Shows how to configure an indexer and skillset. |
57-
| [Create your first app in C#](https://github.com/Azure-Samples/azure-search-dotnet-samples/tree/master/create-first-app/v11) | [Tutorial: Create your first search app](tutorial-csharp-create-first-app.md) | While most samples are console applications, this MVC sample uses a web page to front the sample Hotels index, demonstrating basic search, pagination, autocomplete and suggested queries, facets, and filters.|
57+
| [create-mvc-app](https://github.com/Azure-Samples/azure-search-dotnet-samples/tree/master/create-mvc-app) | [Tutorial: Add search to an ASP.NET Core (MVC) app](tutorial-csharp-create-mvc-app.md) | While most samples are console applications, this MVC sample uses a web page to front the sample Hotels index, demonstrating basic search, pagination, and other server-side behaviors.|
5858

5959
## Other samples
6060

articles/search/search-add-autocomplete-suggestions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ The Autocomplete function takes the search term input. The method creates an [Au
245245

246246
## Next steps
247247

248-
Follow these links for end-to-end instructions or code demonstrating both search-as-you-type experiences. The sample demonstrates the hybrid implementation of suggestions and autocomplete together.
248+
The following tutorial demonstrates a search-as-you-type experience.
249249

250-
+ [Add search to a web site (JavaScript)](tutorial-javascript-search-query-integration.md#azure-function-suggestions-from-the-catalog) uses an open source Suggestions package for partial term completion in the client app.
251-
+ [Tutorial: Create your first app in C# (lesson 3)](tutorial-csharp-type-ahead-and-suggestions.md) with the associated [C# code sample: azure-search-dotnet-samples/create-first-app/3-add-typeahead/](https://github.com/Azure-Samples/azure-search-dotnet-samples/tree/master/create-first-app/v10/3-add-typeahead) demonstrate native support for typeahead.
250+
> [!div class="nextstepaction"]
251+
> [Add search to a web site (JavaScript)](tutorial-javascript-search-query-integration.md#azure-function-suggestions-from-the-catalog)

articles/search/search-blob-storage-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ The output of an indexer is a search index, used for interactive exploration usi
132132
+ [Full query syntax](query-lucene-syntax.md)
133133
+ [Filter expression syntax](query-odata-filter-orderby-syntax.md)
134134

135-
A more permanent solution is to gather query inputs and present the response as search results in a client application. The following C# tutorial explains how to build a search application: [Create your first application in Azure Cognitive Search](tutorial-csharp-create-first-app.md).
135+
A more permanent solution is to gather query inputs and present the response as search results in a client application. The following C# tutorial explains how to build a search application: [Add search to an ASP.NET Core (MVC) application](tutorial-csharp-create-mvc-app.md).
136136

137137
## Next steps
138138

articles/search/search-faceted-navigation.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Facets are dynamic and returned on a query. A search response brings with it all
3131

3232
In Cognitive Search, facets are one layer deep and can't be hierarchical. If you aren't familiar with faceted navigation structured, the following example shows one on the left. Counts indicate the number of matches for each facet. The same document can be represented in multiple facets.
3333

34-
:::image source="media/tutorial-csharp-create-first-app/azure-search-facet-nav.png" alt-text="faceted search results":::
34+
:::image source="media/search-faceted-navigation/azure-search-facet-nav.png" alt-text="Screenshot of faceted search results.":::
3535

3636
Facets can help you find what you're looking for, while ensuring that you don't get zero results. As a developer, facets let you expose the most useful search criteria for navigating your search index.
3737

@@ -287,10 +287,6 @@ If you build the list of facets dynamically based on untrusted user input, valid
287287

288288
Several samples include faceted navigation. This section has links to the samples and also notes which client library and language is used for each one.
289289

290-
### Create your first app in C# (Razor)
291-
292-
This tutorial and sample series in C# includes a [lesson focused on faceted navigation](tutorial-csharp-facets.md). The solution is an ASP.NET MVC app and the presentation layer uses the Razor client libraries.
293-
294290
### Add search to web apps (React)
295291

296292
Tutorials and samples in [C#](tutorial-csharp-overview.md), [Python](tutorial-python-overview.md), and [JavaScript](tutorial-javascript-overview.md) include faceted navigation as well as filters, suggestions, and autocomplete. These samples use React for the presentation layer.

articles/search/search-pagination-page-layout.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ String fields (Edm.String, Edm.ComplexType subfields) are sorted in either [ASCI
139139

140140
+ Numeric content in string fields is sorted alphabetically (1, 10, 11, 2, 20).
141141

142-
+ Upper case strings are sorted ahead of lower case (APPLE, Apple, BANANA, Banana, apple, banana). You can assign a [text normalizer](search-normalizers.md) to preprocess the text before sorting to change this behavior. Using the lowercase tokenizer ona field will have no effect on sorting behavior because Cognitive Search sorts on a non-analyzed copy of the field.
142+
+ Upper case strings are sorted ahead of lower case (APPLE, Apple, BANANA, Banana, apple, banana). You can assign a [text normalizer](search-normalizers.md) to preprocess the text before sorting to change this behavior. Using the lowercase tokenizer on a field will have no effect on sorting behavior because Cognitive Search sorts on a non-analyzed copy of the field.
143143

144144
+ Strings that lead with diacritics appear last (Äpfel, Öffnen, Üben)
145145

@@ -298,6 +298,6 @@ To quickly generate a search page for your client, consider these options:
298298

299299
+ [Application Generator](search-create-app-portal.md), in the portal, creates an HTML page with a search bar, faceted navigation, and results area that includes images.
300300

301-
+ [Create your first app in C#](tutorial-csharp-create-first-app.md) is a tutorial and code sample that builds a functional client. Sample code demonstrates paginated queries, hit highlighting, and sorting.
301+
+ [Add search to an ASP.NET Core (MVC) app](tutorial-csharp-create-mvc-app.md) is a tutorial and code sample that builds a functional client.
302302

303303
+ [Add search to web apps](tutorial-csharp-overview.md) is a tutorial and code sample that uses the React JavaScript libraries for the user experience. The app is deployed using Azure Static Web Apps.

0 commit comments

Comments
 (0)