nerdexam
Microsoft

AZ-204 · Question #287

You are developing a .NET Core MVC application that allows customers to research independent holiday accommodation providers. You want to implement Azure Search to allow the application to search…

The correct answer is B. Configure the QueryType property of the SearchParameters class. 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…

Submitted by priya_blr· Mar 30, 2026Connect to and consume Azure services and third-party services

Question

You are developing a .NET Core MVC application that allows customers to research independent holiday accommodation providers. You want to implement Azure Search to allow the application to search the index by using various criteria to locate documents related to accommodation. You want the application to allow customers to search the index by using regular expressions. What should you do?

Options

  • AConfigure the SearchMode property of the SearchParameters class.
  • BConfigure the QueryType property of the SearchParameters class.
  • CConfigure the Facets property of the SearchParameters class.
  • DConfigure the Filter property of the SearchParameters class.

How the community answered

(32 responses)
  • A
    3% (1)
  • B
    81% (26)
  • C
    13% (4)
  • D
    3% (1)

Explanation

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 https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.search.models.searchparameters https://docs.microsoft.com/en- us/dotnet/api/microsoft.azure.search.models.searchparameters.querytype

Topics

#Azure Cognitive Search#query type#Lucene full syntax#regular expressions

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice