Can we do Query.search in two attributes using “OR” like this database.listDocuments('employee_collection', [ Query.search('employee_name',searchtext), Query.search('employee_id', searchtext), ]);
You can upvote and track this feature request https://github.com/appwrite/appwrite/issues/2740
For now you can the recommend workaround is to add a seracs attribute that will contain all the data you want to be search able.
You can use a function that will trigger for any update/create events and do the filling there so you won't have to remember to do that.
Recommended threads
- Failed to load data from database
My app broken, it throw AppwriteException exception. Few days ago it works well. AppwriteException: , ClientException with SocketException: Failed host lookup:...
- AI feature by functions?
I'm creating a website where, in short, users can index certain genealogical content. In connection with the development of AI, I was thinking about introducing...
- 500 Internal Error when Project is opene...
After migrating from 1.6.1 to 1.7.4 I noticed this strange behaviour: When I open a project in a separate tab I get a 500 internal error. However, then I simpl...