Relationship for 2 indices

Hi,

I have 2 indices

Dessert indice:

“title”: “Double Chocolate Muffin”,
“author”: {
“id”: “8”,
“name”: “Dessert Advisor”
},
“_listing_type”: [
“dessert”
],
“_dessert-place-id”: [
“CAP0000123”
]
}

Place Indice:

{
“title”: “Boulangerie Première Moisson”,
“author”: {
“id”: “8”,
“name”: “Dessert Advisor”
},
“_listing_type”: [
“dessert-place”
],
“_location”: [
“3025 Rue St Ambroise, Montréal, QC, H4C 2C2, Canada”
],
“_main-id”: [
{
“CAP0000123”
}
]
}

My question is: How to connect 2 indices in Algolia so that I can query the dessert based on the location of the place indices for example “Première Moisson muffins Montreal” for “Double Chocolate Muffin” to appear as result ? The key to connect them is the _dessert-place-id and _main-id as they matched each other.

Thanks for any helps in advanced.