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 😄
Summary
The user wants to add Appwrite functionality to Meilisearch for searching usernames in their NextJS app. They are unsure how to update the Meilisearch index when the Appwrite collection is updated. A user suggests using GraphQL for this purpose, but another user mentions that they don't need Meilisearch and can use Appwrite's search query instead. They recommend creating a function that triggers when CRUD operations are performed on the Appwrite database to update the index. The user can refer to the Appwrite documentation for a list of events that can trigger a function. The user also shares an example of how to relate users with
Mickaël LT
Rank 2: Process
Mar 20, 2023, 16:14
A function triggered by database CRUD operation, and so this function can update the meilisearch indexation ?
joeyouss
Mar 20, 2023, 16:44
Hey, thank you for your question, is this regarding the Github Octernship? just curious to know more and help accordingly.
Drake
Mar 20, 2023, 17:13
btw, I'm not sure if you need meilisearch for this...have you looked into using Appwrite's search query?
rafagazani
Mar 21, 2023, 00:28
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
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?)
loup
Rank 3: Container
Mar 21, 2023, 10:15
And does the search Appwrite Engine allow typos?
Ankur Singh
Mar 21, 2023, 11:21
For octernship, does we have to update the Meilisearch data when CRUD operation is performed to Appwrite Database?
rafagazani
Mar 21, 2023, 13:00
you can try with graphql.
Drake
Mar 21, 2023, 16:00
no, so for that use case, you'll need a more advanced full text search like Meilisearch 👍🏼
loup
Rank 3: Container
Jun 22, 2023, 14:12
Okay I comeback to this channel for adding the function that will bridge appwrite and meilisearch