How to index this structure

Hi folks, Iā€™m new to Algolia and not the best developer but trying to make my own startup in my free time, my idea is to build a site for artists with post features, and artists could be associate with companies too, what is the best approach to index this data? Could I create an index with all the data inside or I need to create one for each type(artists,posts, companies) and then create the input search calling to different indexes? Thanks for your help :slight_smile:

I wanna have an input that can search on artists, companies or posts at the same time.

Hi, @julianfullstackdev Welcome to our community!

You should have separate indices for each type of collection and then you will be able to search within each of them. You can even search all of them together using the multi-index capabilities of instantsearch.

1 Like