Query Suggestions
These examples highlight the use of theautocomplete-plugin-query-suggestions
plugin to show suggested search queries in your autocomplete menu.
For more information, see Build a Query Suggestions UI with Autocomplete.
Search suggestions

As users start typing, the autocomplete menu shows suggested search queries.
Search suggestions with categories

The top suggestions are shown with categories to help users search more precisely.
Search suggestions with inline categories

Categories are shown on the same line as the suggestion for a more compact experience.
Multiple sources
These examples highlight the use of multiple data sources for the autocomplete items. The examples use multiple plugins, such as theautocomplete-plugin-query-suggestions
,
autocomplete-plugin-recent-searches
, and the getAlgoliaResults
function to retrieve search results.
For more information, see Sources.
Search suggestions and results

As users start typing, the autocomplete menu shows suggested searches and matching search results.
Search suggestions and recent searches

This autocomplete menu remembers previous searches and shows them on top of the suggested searches.
Search suggestions with categories and recent searches

This autocomplete menu shows the top search suggestions with their categories in addition to recent searches.
Search suggestions with recent searches and search results

In addition to recent searches and search suggestions, this autocomplete shows matching search results grouped by category.
Federated ecommerce search experience

This autocomplete menu features a two-column layout that shows recent searches and suggestions in the left column, and matching products in a grid in the right column.
Integrate Autocomplete
These examples show how to integrate Autocomplete with InstantSearch or popular frontend frameworks.Autocomplete and React InstantSearch

Autocomplete + React InstantSearch
Autocomplete and InstantSearch.js

Autocomplete + InstantSearch.js
Autocomplete and Vue InstantSearch

Autocomplete + Vue InstantSearch
Autocomplete and React

Custom React renderer
Other
These examples highlight other autocomplete features and plugins.Static sources

As users start typing, this autocomplete menu shows matching predefined links to GitHub repositories.
Recently-viewed items

This autocomplete menu remembers items that users have previously viewed and shows them before the user starts typing (empty query).
Redirect searches

This autocomplete menu redirects users to other pages if the query matches predefined criteria.