Back

meilisearch function whole project

  • 0
  • Self Hosted
  • Functions
  • Databases
rbiut
29 Jan, 2025, 02:53

Im trying to add meilisearch to my project, according to the Sync with Meilisearch function template, i need appwrite collection and appwrite database variables... my project runs with multiple databases and each database with multiple collections (obviously), its possible to sync all the databases and all collections instead creating multiple functions for each database/collections? each database has at least 7 collections i want to add to meilisearch, and i have atm 25 databases that means 175 functions atm, every user has its own database with its own collections (all collections are the same within databases)

TL;DR
To sync multiple databases and collections with MeiliSearch without creating separate functions for each, you can use a loop to iterate through all databases and collections. This way, you can dynamically sync all collections without hardcoding each one.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more