I’m new to Algolia. I’m an iOS developer using Swift on the client side and Firebase for my backend. I’m using Node.js for my Algolia implementation.
How do I set a wild card inside my Algolia root path?
The path is: root/users/userID/post
The ‘userID’ is set by using Firebase’s ‘childByAutoID’ which will give each user a different id number. I tried using an asterisk as a wildcard in my code but it doesn’t work:
var rootRef = firebase.database().ref(‘users/*/post’);
The cli is unresponsive and the Firebase data won’t get indexed.
However if I use:
var rootRef = firebase.database().ref(‘users/A178928/post’);
wherein A178928 is a user’s id then the Firebase data does get indexed.
This isn’t practical because I will have many users and I need to have a wildcard to use in the path.
Any ideas on how I should approach this?
var rootRef = firebase.database().ref(‘users/wildcard_needs_to_go_here/post’);