#Query search or

2 messages · Page 1 of 1 (latest)

spark trellis
#

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),
]);

rocky temple
#

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.