Integrating places autocomplete with additional sources/datasets

Currently I have a InstantSearchjs instance for faceting (Wordpress taxonomies) and I am using a places widget for city suggestions. I am looking for a custom widget that can combine Places and the Wordpress taxonomy indices as sources for suggestions.

Goal is to have an autocomplete search box that gives for suggestions for cities (Places), Regions (Wordpress taxonomies) and other features (also from Wordpress taxonomies).

I think I read somewhere that autocomplete can be set up in this way. Can you point me in the right direction?



autocomplete.js can be set up to combine hits from multiple sources, including places, combined with a search for facet values. You can do that like this:

1 Like

Hello, how can I do this in React? Is there any reference code, been stuck on this for 2 days now. Thank you!

This is slightly less straightforward with React InstantSearch, but it’s possible if you create a custom search client which will forward some queries to places. You can see a demo for that here @vinayakdhadda2417: