Okay , well I want to add an appwrite collection to my Meilisearch instance. In fact, I've an user collection with contain the username of each user. And I want to add a searching functionality to my NextJS app for username. So how can I do to update automatically the Meilisearch index that we gonna call user when user Appwrite's collection is update to (new user, update user, deleted user, ...) ? I have absolutely no idea how to do it 😄
A function triggered by database CRUD operation, and so this function can update the meilisearch indexation ?
Hey, thank you for your question, is this regarding the Github Octernship? just curious to know more and help accordingly.
btw, I'm not sure if you need meilisearch for this...have you looked into using Appwrite's search query?
You can create a function that fires when events fire
teams.*.memberships.*.create
teams.*.memberships.*.delete
teams.*.memberships.*.update
If you don't work with a team, you can trigger the events:
users.*.create
users.*.delete
users.*.update
here is a list of all events that can trigger a function: https://appwrite.io/docs/events
In my application, there is a collection with the information of all users. I need these collections because I have a team that manages other teams Here is the example: https://github.com/rafagazani/relacionar_usuario_com_equipe_example
as steven wrote you don't need meilisearch
Heuu its because Im gonna use Meilisearch for searching movies too so I need a search engine for everything. Unless with APpwrite it is possible to search in several collections at the same time (and have a single list returning the most relevant answers, films and users mixed?)
And does the search Appwrite Engine allow typos?
For octernship, does we have to update the Meilisearch data when CRUD operation is performed to Appwrite Database?
you can try with graphql.
no, so for that use case, you'll need a more advanced full text search like Meilisearch 👍🏼
Okay I comeback to this channel for adding the function that will bridge appwrite and meilisearch
This can be a good start: https://dev.to/appwrite/building-an-open-source-search-engine-with-appwrite-and-meilisearch-40kn
Recommended threads
- router_deployment_not_found
I updated my function a few times and now i am getting the error: router_deployment_not_found I even reverted back to my original code but i am still getting th...
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!