You are developing a .NET Core MVC app that lets customers search listings for independent holiday accommodations using Azure Search. You need to allow customers to run searches using regular expressions. What should you configure?
Choose an answer
Tap an option to check your answer.
Correct answer: Set the QueryType property on the SearchParameters object..
Why this is the answer
To enable regular expression searches in Azure Search, you must set the QueryType property on the SearchParameters object to a value that supports advanced query syntax, such as full. The default QueryType is simple, which does not support regular expressions. Setting the SearchMode property controls whether all or any of the search terms must be matched, not the query syntax itself. The Facets property is used for faceted navigation, allowing users to refine search results based on categories. The Filter property applies a boolean expression to narrow down the search results based on specific criteria, distinct from the search query itself.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed