Recent Searches Widget

Hi,
I wanted to ask if there is an option to implement the recent searches widget in autocomplete.js file ?

search.addWidget(
new RecentSearchesWidget({
container: “#recent-searches”,
querySuggestionsIndex: “query-suggestions”,
placeholder: “Search with Query Suggestions”,
maxSavedSearchesPerQuery: 5,
noResultsRenderer: (query, response) =>
<li class="no-results">No matching suggestion for <strong>${query}</strong></li>
})
);

Hello,
The example you provide relates to Instantsearch as documented here: https://www.algolia.com/doc/guides/solutions/gallery/recent-searches/

For autocomplete.js, I found this plugin https://www.npmjs.com/package/@algolia/autocomplete-plugin-recent-searches ; note that it is an ALPHA version, unstable and should probably not be used yet.

The documentation of autocomplete.js also mentions this: https://github.com/algolia/autocomplete.js/blob/master/README.md#popularin-aka-xxxxx-in-yyyyy that seems to achieve something similar (suggesting popular queries); hopefully this will be helpful.