Multiple indexes search on Wordpress

Hello,

I followed the documentation for setting up Algolia on wordpress but I encountered an issue :
I would like to applied the search on posts, pages and custom posts but I have one index per type.
How can I combine differents types in one index to make the search works ?

Thank you for your help !

Jeremy

Hi @w3lead,

If you want to add other post types to your existing posts index, we have a guide here that can help:

Thereafter, I would recommend keeping varying types of records in separate indices (i.e., separate posts index and categories index).

With different indices, you can still use a single search and hit multiple indices - we call that a multi-index search! You can do that with:

I hope this helps!