Skip to content

Commit d17c147

Browse files
author
PeterTurcan
committed
acrolinx minutia for basic and paging
1 parent 9d95e8e commit d17c147

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ namespace FirstAzureSearchApp.Models
235235
}
236236
```
237237

238-
This class contains the user's input (**searchText**), and the search's output (**resultList**). The type of the output is critical, **DocumentSearchResult<Hotel>**, as this type exactly matches the results from the search, and we need to pass this through to the view.
238+
This class contains the user's input (**searchText**), and the search's output (**resultList**). The type of the output is critical, **DocumentSearchResult<Hotel>**, as this type exactly matches the results from the search, and we need to pass this reference through to the view.
239239

240240

241241

@@ -303,7 +303,7 @@ Delete the content of Index.cshtml in its entirety, and rebuild the file in the
303303
</body>
304304
```
305305

306-
6. Finally, we add the stylesheet. In Visual Studio, in the **File** menu select **New/File** then **Style Sheet** (with **General** highlighted). Replace the default code with the following. We will not be going into this file in any more detail, the styles are just standard HTML.
306+
6. Finally, we add the stylesheet. In Visual Studio, in the **File** menu select **New/File** then **Style Sheet** (with **General** highlighted). Replace the default code with the following. We will not be going into this file in any more detail, the styles are standard HTML.
307307

308308
```cs
309309
textarea.box1 {
@@ -523,7 +523,7 @@ It is important to verify that our error handling features work as they should,
523523

524524
1. In the **Index** method, after the **try {** call, enter the line **Throw new Exception()**. This exception will force an error when we search on text.
525525

526-
2. Run the app, enter "bar" as search text, and click the search icon. This should result in the error view.
526+
2. Run the app, enter "bar" as search text, and click the search icon. The exception should result in the error view.
527527

528528
![Force an error](./media/tutorial-csharp-create-first-app/azure-search-error.png)
529529

articles/search/tutorial-csharp-paging.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: C# Tutorial on search results pagination - Azure Search
3-
description: This tutorial builds on the "Create your first app - Azure Search" project, with the choice of two types of paging. The first uses a range of page number buttons, as well as first, next, previous, and last page buttons. The second paging system uses infinite scrolling, triggered by moving a vertical scroll bar to it's lower limit.
3+
description: This tutorial builds on the "Create your first app - Azure Search" project, with the choice of two types of paging. The first uses a range of page number buttons, as well as first, next, previous, and last page buttons. The second paging system uses infinite scrolling, triggered by moving a vertical scroll bar to its lower limit.
44
services: search
55
ms.service: search
66
ms.topic: tutorial
@@ -40,7 +40,7 @@ Have the basic search page solution open.
4040

4141
1. Open the SearchData.cs model file.
4242

43-
2. First add some global variables. In MVC global variables are declared in their own static class. **ResultsPerPage** sets the number of results per page. **MaxPageRange** determines the number of visible page numbers on the view. **PageRangeDelta** determines how many pages left or right the page range should be shifted, when the left-most or right-most page number is selected. Typically this latter number is around half of **MaxPageRange**. Add the following code into the namespace.
43+
2. First add some global variables. In MVC, global variables are declared in their own static class. **ResultsPerPage** sets the number of results per page. **MaxPageRange** determines the number of visible page numbers on the view. **PageRangeDelta** determines how many pages left or right the page range should be shifted, when the left-most or right-most page number is selected. Typically this latter number is around half of **MaxPageRange**. Add the following code into the namespace.
4444

4545
```cs
4646
public static class GlobalVariables
@@ -367,7 +367,7 @@ Now select **Start Without Debugging** (or press the F5 key).
367367

368368
3. Are the "first" and "last" options useful? Some popular web searches use these options, and others do not.
369369

370-
4. Go to the the last page of results. The last page is the only page that may contain less than **ResultsPerPage** results.
370+
4. Go to the last page of results. The last page is the only page that may contain less than **ResultsPerPage** results.
371371

372372
![Examining last page of "wifi"](./media/tutorial-csharp-create-first-app/azure-search-pool-last-page.png)
373373

@@ -396,7 +396,7 @@ To implement infinite scrolling, let's start with the project before any of the
396396

397397
This variable is a string, which holds "next" if the next page of results should be sent, or be null for the first page of a search.
398398

399-
2. In the same file, and within the namespace, add a global variable class with one property. In MVC global variables are declared in their own static class. **ResultsPerPage** sets the number of results per page.
399+
2. In the same file, and within the namespace, add a global variable class with one property. In MVC, global variables are declared in their own static class. **ResultsPerPage** sets the number of results per page.
400400

401401
```cs
402402
public static class GlobalVariables
@@ -589,7 +589,7 @@ Consider the following takeaways from this project:
589589

590590
## Next steps
591591

592-
Paging is fundamental to internet searches. With that well covered, the next step is to improve the user experience further, by adding type-ahead searches.
592+
Paging is fundamental to internet searches. With paging well covered, the next step is to improve the user experience further, by adding type-ahead searches.
593593

594594
> [!div class="nextstepaction"]
595595
> [C# Tutorial: Add autocompletion and suggestions - Azure Search](tutorial-csharp-type-ahead-and-suggestions.md)

0 commit comments

Comments
 (0)