exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 6 question 8 discussion

Actual exam question from Microsoft's AZ-203
Question #: 8
Topic #: 6
[All AZ-203 Questions]

HOTSPOT -
You are developing a .NET Core MVC application for customers to research hotels. The application will use Azure Search. The application will search the index by using various criteria to locate documents related to hotels. The index will include search fields for rate, a list of amenities, and distance to the nearest airport.
The application must support the following scenarios for specifying search criteria and organizing results:
✑ Search the index by using regular expressions.
Organize results by counts for name-value pairs.

✑ List hotels within a specified distance to an airport and that fall within a specific price range.
You need to configure the SearchParameters class.
Which properties should you configure? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer: Explanation
Box 1: QueryType -
The SearchParameters.QueryType Property gets or sets a value that specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax.
You can write queries against Azure Search based on the rich Lucene Query Parser syntax for specialized query forms: wildcard, fuzzy search, proximity search, regular expressions are a few examples.

Box 2: Facets -
The facets property gets or sets the list of facet expressions to apply to the search query. Each facet expression contains a field name, optionally followed by a comma-separated list of name:value pairs.

Box 3: Filter -
The Filter property gets or sets the OData $filter expression to apply to the search query.
References:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.search.models.searchparameters https://docs.microsoft.com/en-us/azure/search/query-lucene-syntax https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.search.models.searchparameters.querytype

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
bulve
Highly Voted 5 years, 2 months ago
Options: https://www.examshared.com/images/AZ-203.files/image059.jpg
upvoted 18 times
cbn
4 years, 4 months ago
Clearer one: https://cdn.shortpixel.ai/client/q_glossy,ret_img/https://freedumps.certqueen.com/wp-content/uploads/2020/06/image055-5.jpg
upvoted 6 times
...
...
kiranmai
Most Recent 4 years, 8 months ago
Can any one provide options for this question
upvoted 1 times
...
azureuser1
4 years, 11 months ago
I think box3 should be OrderBy
upvoted 2 times
nischal123
4 years, 11 months ago
The given answer looks correct since the question says you are actually filtering the hotels by using the specified distance and price range.
upvoted 8 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...