You want the application to allow customers to search the index by using regular expressions. What should you do?

Last Updated on November 19, 2021 by Admin 3

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?

  • Configure the SearchMode property of the SearchParameters class.
  • Configure the QueryType property of the SearchParameters class.
  • Configure the Facets property of the SearchParameters class.
  • Configure the Filter property of the SearchParameters class.

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 examples.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments