You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/tutorial-csharp-type-ahead-and-suggestions.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,11 +24,11 @@ In this tutorial, you learn how to:
24
24
25
25
To complete this tutorial, you need to:
26
26
27
-
Have the [C# Tutorial: Search results pagination - Azure Search](tutorial-csharp-paging.md) project up and running. This can either be your own version, that you completed in the previous tutorial, or install it from GitHub: [Create first app](https://github.com/Azure-Samples/azure-search-dotnet-samples).
27
+
Have the [C# Tutorial: Search results pagination - Azure Search](tutorial-csharp-paging.md) project up and running. This project can either be your own version, that you completed in the previous tutorial, or install it from GitHub: [Create first app](https://github.com/Azure-Samples/azure-search-dotnet-samples).
28
28
29
29
## Add suggestions
30
30
31
-
Let's start with the simplest case of offering up alternatives to the user: simply a drop-down list of suggestions.
31
+
Let's start with the simplest case of offering up alternatives to the user: a drop-down list of suggestions.
32
32
33
33
1. In the index.cshtml file, change the **TextBoxFor** statement to the following.
34
34
@@ -73,7 +73,7 @@ The autocomplete function called in the script above is not something we have to
@@ -119,7 +119,7 @@ Now we can use the predefined autocomplete jquery functions.
119
119
}
120
120
```
121
121
122
-
The **Top** parameter specifies how many results to return (if unspecified, the default is 5). A _suggester_ is specified on the Azure index, which is done when the data is set up, and not by a client app such as this tutorial. In this case, the suggester is called "sg" and it simply searches the **HotelName** field - nothing else.
122
+
The **Top** parameter specifies how many results to return (if unspecified, the default is 5). A _suggester_ is specified on the Azure index, which is done when the data is set up, and not by a client app such as this tutorial. In this case, the suggester is called "sg", and it searches the **HotelName** field - nothing else.
123
123
124
124
Fuzzy matching allows "near misses" to be included in the output. If the **highlights** parameter is set to true, then bold HTML tags are added to the output. We will set these two parameters to true in the next section.
125
125
@@ -134,7 +134,7 @@ using System.Linq;
134
134
135
135

136
136
137
-
Notice that the letters you enter _must_ start a word, not simply be included within the word.
137
+
Notice that the letters you enter _must_ start a word, and not simply be included within the word.
138
138
139
139
4. In the view script, set **&fuzzy** to true, and run the app again. Now enter "po". Notice that the search assumes you got one letter wrong!
140
140
@@ -275,7 +275,7 @@ There are libraries that offer this functionality - often called "inline autocom
275
275
};
276
276
277
277
// Only one suggester can be specified per index. The name of the suggester is set when the suggester is specified by other API calls.
278
-
// The suggester for the hotel database is called "sg" and simply searches the hotel name.
278
+
// The suggester for the hotel database is called "sg", and it searches only the hotel name.
0 commit comments