Skip to content

Commit bcf1539

Browse files
authored
Merge pull request #110951 from HeidiSteen/heidist-search
[Azure Cog Search] Autocomplete refresh 1
2 parents 5411365 + 7265aed commit bcf1539

File tree

2 files changed

+16
-28
lines changed

2 files changed

+16
-28
lines changed

articles/search/index-add-suggesters.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,21 @@
11
---
2-
title: Add typeahead queries to an index
2+
title: Create a suggester
33
titleSuffix: Azure Cognitive Search
44
description: Enable type-ahead query actions in Azure Cognitive Search by creating suggesters and formulating requests that invoke autocomplete or autosuggested query terms.
55

66
manager: nitinme
7-
author: Brjohnstmsft
8-
ms.author: brjohnst
7+
author: HeidiSteen
8+
ms.author: heidist
99
ms.service: cognitive-search
1010
ms.topic: conceptual
11-
ms.date: 11/04/2019
12-
translation.priority.mt:
13-
- "de-de"
14-
- "es-es"
15-
- "fr-fr"
16-
- "it-it"
17-
- "ja-jp"
18-
- "ko-kr"
19-
- "pt-br"
20-
- "ru-ru"
21-
- "zh-cn"
22-
- "zh-tw"
11+
ms.date: 04/10/2020
2312
---
24-
# Add suggesters to an index for typeahead in Azure Cognitive Search
2513

26-
In Azure Cognitive Search, "search-as-you-type" or typeahead functionality is based on a **suggester** construct that you add to a [search index](search-what-is-an-index.md). It's a list of one or more fields for which you want typeahead enabled.
14+
# Create a suggester to enable autocomplete and suggestions in Azure Cognitive Search
2715

28-
A suggester supports two typeahead variants: *autocomplete*, which completes the term or phrase you are typing, and *suggestions* that return a short list of matching documents.
16+
In Azure Cognitive Search, "search-as-you-type" or typeahead functionality is based on a **suggester** construct that you add to a [search index](search-what-is-an-index.md). A suggester supports two search-as-you-type variants: *autocomplete*, which completes the term or phrase you are typing, and *suggestions* that return a short list of matching documents.
2917

30-
The following screenshot, from the [Create your first app in C#](tutorial-csharp-type-ahead-and-suggestions.md) sample, illustrates typeahead. Autocomplete anticipates what the user might type into the search box. Actual input is "tw", which autocomplete finishes with "in", resolving as "twin" as the prospective search term. Suggestions are visualized in the dropdown list. For suggestions, you can surface any part of a document that best describes the result. In this example, the suggestions are hotel names.
18+
The following screenshot, from the [Create your first app in C#](tutorial-csharp-type-ahead-and-suggestions.md) sample, illustrates both experiences. Autocomplete anticipates what the user might type, finishing "tw" with "in" as the prospective search term. Suggestions are actual search results, each one representing a matching document. For suggestions, you can surface any part of a document that best describes the result. In this example, the suggestions are represented by the hotel name field.
3119

3220
![Visual comparison of autocomplete and suggested queries](./media/index-add-suggesters/hotel-app-suggestions-autocomplete.png "Visual comparison of autocomplete and suggested queries")
3321

articles/search/search-autocomplete-tutorial.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
2-
title: Add suggestions and autocomplete in a search box
2+
title: Add autocomplete and suggestions in a search box
33
titleSuffix: Azure Cognitive Search
4-
description: Enable typeahead query actions in Azure Cognitive Search by creating suggesters and formulating requests that fill in a search box with completed terms or phrases.
4+
description: Enable search-as-you-type query actions in Azure Cognitive Search by creating suggesters and formulating requests that autocomplete a search box with finished terms or phrases. You can also return suggested matches.
55

66
manager: nitinme
7-
author: mrcarter8
8-
ms.author: mcarter
7+
author: HeidiSteen
8+
ms.author: heidist
99
ms.service: cognitive-search
10-
ms.topic: tutorial
11-
ms.date: 11/04/2019
12-
#Customer intent: As a developer, I want to understand autocomplete implementation, benefits, and tradeoffs.
10+
ms.topic: conceptual
11+
ms.date: 04/10/2020
12+
1313
---
1414

1515
# Add suggestions or autocomplete to your Azure Cognitive Search application
1616

1717
In this article, learn how to use [suggestions](https://docs.microsoft.com/rest/api/searchservice/suggestions) and [autocomplete](https://docs.microsoft.com/rest/api/searchservice/autocomplete) to build a powerful search box that supports search-as-you-type behaviors.
1818

19-
+ *Suggestions* are suggested results generated as you type, where each suggestion is a single result from the index that matches what you've typed so far.
19+
+ *Suggestions* generate search results as you type, where each suggestion is a single result or search document from the index that matches what you've typed so far.
2020

21-
+ *Autocomplete* "finishes" the word or phrase that a user is currently typing. Instead of returning results, it completes a query, which you can then execute to return results. As with suggestions, a completed word or phrase in a query is predicated on a match in the index. The service won't offer queries that return zero results in the index.
21+
+ *Autocomplete* generates queries by "finishing" the word or phrase. Instead of returning results, it completes a query, which you can then execute to return results. As with suggestions, a completed word or phrase in a query is predicated on a match in the index. The service won't offer queries that return zero results in the index.
2222

2323
You can download and run the sample code in **DotNetHowToAutocomplete** to evaluate these features. The sample code targets a prebuilt index populated with [NYCJobs demo data](https://github.com/Azure-Samples/search-dotnet-asp-net-mvc-jobs). The NYCJobs index contains a [Suggester construct](index-add-suggesters.md), which is a requirement for using either suggestions or autocomplete. You can use the prepared index hosted in a sandbox service, or [populate your own index](#configure-app) using a data loader in the NYCJobs sample solution.
2424

0 commit comments

Comments
 (0)