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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...