Using the Bing Auto-Suggest API

Learn how to use the auto-suggest feature from Azure Bing Search services.

Introduction

In this lesson, we’re going to implement the auto-suggest feature using the Azure Bing Search service. With this functionality, the Bing service could provide the search results even when there is a spelling mistake. It can also provide suggestions based on your current search term. The main purpose of the auto-suggest feature is to provide suggestion of different search terms based on your search history and the keyword match. For example, if you pass the search term learn to bing auto-suggest, then it will provide different search terms that are related to the given search term. It will not perform the web search result.

Implementing bing auto-suggest

We’ll again use the Bing Search API calls to implement the auto-suggest functionality. In this example, we’ll try to perform the web search by providing a misspelled search term and in the output, we’ll observe that the Azure Bing service has provided the suggestions for the given search term.

Get hands-on with 1200+ tech skills courses.