There is not currently a way to return a single array of results/hits when querying multiple Algolia indices. Each index will return its own separate array of results/hits.
Depending on your use case, it may be worth using a single index instead of multiple indices.
If absolutely necessary for your use case and the indices must remain separate, this would require custom code to merge the separate arrays after they had been returned from the different indices.
last reviewed Dec. 5, 2022