Working with Firestore subcollections in Algolia

I have a question, how can I search my subcollections? I have seen how to do it with collections but in this case I have several subcollections and I do not know how to implement the search