Algolia autocomplete facet search

autocomplete
#1

Hi there!
I’m using autocomplete.js to develop an input search that pops an autocomplete dropdown with facet values (instead of the default behaviour - showing products).
I’m using this example:


with this code provided by Haroen Viaene:

Problem:
When performing a search, the results won’t show on the autocomplete dropdown.
I’m pretty sure the search returns results because they appear as facetHits on Chrome inspector Network tab.

Here is my code:
https://pastebin.com/UkjTRejn

What should I do in order to make the search results appear on the autocomplete dropdown?
Thanks in advance.