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
- User Blocked - False Positive
Today I tried to log in to my cloud console and it said the user is blocked and I didn't even receive any email regarding this like what kind of violation is my...
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please