The search query is not working as expected. When I search for part of a username in my code, it doesn't return documents unless I include the first part of the username (as if it was a "starts with" query). This is my code:
let usernameDocuments = try await databases.listDocuments(
databaseId: databaseId,
collectionId: "#############",
queries: [
Query.search("username", value: username),
]
)
Based on the documentation (https://appwrite.io/docs/products/databases/queries) this requires a full text index, which I have created already.
A recent support entry here suggested using contains, but Query.contains is not available for iOS (?).
I think it's like
Query.search("text", "key words")
Recommended threads
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.