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
- Previous ession
Hi, implementing authentication via email and password I found myself in a dilemma: once logged in and then created a session, if I immediately delete the app a...
- Email Verification URL
Hi, I've been working on a react native project using appwrite and saw that you can sign in without verifying your email. I then fell upon Email Verification, w...
- Best approach to an app
hi im building an app that will be used within multiple different companies to store non-sensitive informations such as timings. would the best approach be to c...