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
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- Collections list not showing up when try...
I'm trying to create new relationship attribute but both one way and two way relationship is not showing up collections list to connect with my relationship att...
- I have try to use the appwrite in to the...
Invalid Origin. Register your new client (oailedjdbkhlkakmnnapoonllbnfmfij) as a new Web (Chrome Extension) platform on your project console dashboard