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
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...
- Update user email using OTP
Hi, I am trying to implement email update using OTP, there is not password associated with the account. One solution I found online is creating appwrite functio...