ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 95 - AI-102 discussion

Report
Export

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 suqqesterName in the body.
Answers
A.
Make API queries to the autocomplete endpoint and include suqqesterName in the body.
B.
Add a suggesterthat has the three product name fields as source fields.
Answers
B.
Add a suggesterthat 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 searchFieids query parameter.
Answers
C.
Make API queries to the search endpoint and include the product name fields in the searchFieids query parameter.
D.
Add a suggester for each of the three product name fields.
Answers
D.
Add a suggester for each of the three product name fields.
E.
Set the searchAnalyzer property for the three product name variants.
Answers
E.
Set the searchAnalyzer property for the three product name variants.
F.
Set the analyzer property for the three product name variants.
Answers
F.
Set the analyzer property for the three product name variants.
Suggested answer: A, B, F

Explanation:

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.

Reference:

https://docs.microsoft.com/en-us/azure/search/index-add-suggesters

asked 26/09/2024
Vishal Vitthal Pawar
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first