Microsoft
AZ-204 · Question #293
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 D. Configure the Filter property of the SearchParameters class. The Filter property gets or sets the OData $filter expression to apply to the search query. https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.search.models.searchparameters https://docs.microsoft.com/en…
Submitted by deeparc· 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 venues. You want the application to list holiday accommodation venues that fall within a specific price range and are within a specified distance to an airport. 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
(56 responses)- A5% (3)
- B14% (8)
- C9% (5)
- D71% (40)
Explanation
The Filter property gets or sets the OData $filter expression to apply to the search query. 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#OData filter#geospatial search#price range filtering
Community Discussion
No community discussion yet for this question.