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 (?).