Thank you for taking the time to look at my post!
I would like to build an autocomplete for search only collection.
I tried creating an autocomplete search with Ajax but it only returns products.
I tried setting type='collection' but it didn't work.
Do you know how I can do that?
Thank you for your helping,
Collections aren't returned in storefront search. Consider using liquid pull out a list of collections, this would speed up the auto complete and avoid an AJAX request.