What is the best way to do search?

Troubleshooting

So, currently working on a messaging app, and i want to implement a search function for the chats.
What is the best way to do this?

I have implemented Algolia, but cannot figure out how to filter the queries, since users should only see the chats that they are in. Algolia queries all chats.

Is simple search a better option? It just seems quite slow.

I dont have much coding experience, but querying all chats and then filtering afterwards is not secure right?

Thank you for taking the time to help me 🙂

What have you tried so far?

Algolia

Did you check FlutterFlow's Documentation for this topic?
Yes
3
5 replies