Magento v1 autocomplete javascript object

How do interact with the autocomplete object as defined here.

e.g. as search.autocomplete.open(); OR $(’#search’).autocomplete(‘open’); do not work

Hello,

to interact with autocomplete you can use custom frontend hook: https://community.algolia.com/magento/doc/m1/frontend-events/#autocomplete-menu-events

Or you can use something like this:

$(algoliaConfig.autocomplete.selector).each(function () {
	$(this)
	.on('autocomplete:shown', function() {
		// FIXME
	})
	.on('autocomplete:closed', function() {
		// FIXME
	});
});