#[SOLVED] iOS Search Query not working as expected

1 messages · Page 1 of 1 (latest)

terse vine
#

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

Harness the power of querying with Appwrite Databases. Discover various query options, filtering, sorting, and advanced querying techniques.

full egret
lofty solstice
terse vine
terse vine
cobalt nymph
#

Query definitely has the method here.

cobalt nymph
terse vine