AI-102 dumps, Create a suggester and Cognitive Search

Nichel Jhon 2022-08-24
You are developing the smart e-commerce project.
You need to implement autocompletion as part of the Cognitive Search solution.
Which three actions should you perform? Each correct answer presents part of the solution. (Choose three.) NOTE: Each correct selection is worth one point.
A. Make API queries to the autocomplete endpoint and include suggesterName in the body.
B. Add a suggester that has the three product name fields as source fields.
C. Make API queries to the search endpoint and include the product name fields in the searchFields query parameter.
D. Add a suggester for each of the three product name fields.
E. Set the searchAnalyzer property for the three product name variants.
F. Set the analyzer property for the three product name variants.
Answer: A B F
Scenario: Support autocompletion and autosuggestion based on all product name variants.
A: Call a suggester-enabled query, in the form of a Suggestion request or Autocomplete request, using an API. API usage is illustrated in the following call to the Autocomplete REST  API.

POST   /indexes/myxboxgames/docs/autocomplete?search&api-version=2020-06-30
"search": "minecraf", "suggesterName": "sg"
B: In Azure Cognitive Search, typeahead or "search-as-you-type" is enabled through a suggester. A suggester provides a list of fields that undergo additional tokenization, generating prefix sequences to support matches on partial terms. For example, a suggester that includes a City field with a value for "Seattle" will have prefix combinations of "sea", "seat", "seatt", and "seattl" to support typeahead.
F. Use the default standard Lucene analyzer ("analyzer": null) or a language analyzer (for example, "analyzer": "en.Microsoft") on the field.

Typeahead experiences in Cognitive Search
Typeahead can be autocomplete, which completes a partial input for a whole term query, or suggestions that invite click through to a particular match. Autocomplete produces a query. Suggestions produce a matching document.
The following screenshot from Create your first app in C# illustrates both. Autocomplete anticipates a potential term, finishing "tw" with "in". Suggestions are mini search results, where a field like hotel name represents a matching hotel search document from the index. For suggestions, you can surface any field that provides descriptive information.
Visual comparison of autocomplete and suggested queries
You can use these features separately or together. To implement these behaviors in Azure Cognitive Search, there is an index and query component.
Add a suggester to a search index definition. The remainder of this article is focused on creating a suggester.
Call a suggester-enabled query, in the form of a Suggestion request or Autocomplete request, using one of the APIs listed below.
Search-as-you-type support is enabled on a per-field basis for string fields. You can implement both typeahead behaviors within the same search solution if you want an experience similar to the one indicated in the screenshot. Both requests target the documents collection of specific index and responses are returned after a user has provided at least a three character input string.
Popular Tags: AI-102

Related Post