Sending a request

In the first section of this chapter, you created your Azure Search instance and saw Search explorer, which enables you to send simple queries. Now, we will extend our requests, so you can select which fields should be used for query analysis, to filter results, and to order by a particular property. Here is the basic URL, which you will use for all of your requests:

https://handsonazuresearch.search.windows.net/indexes/realestate-us-sample/docs?api-version=2016-09-01&search=*

Of course, it will differ depending on the name of your Azure Search instance, the index name, and the version used. The URL template can be defined as follows:

https://[service name].search.windows.net/indexes/[index name]/docs?[query parameters] ...

Get Hands-On Azure for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.