appwrite/sdk-for-react-native

๐Ÿ› Bug Report: Query not Working.

Opened this issue ยท 1 comments

๐Ÿ‘Ÿ Reproduction steps

When I try to use Query.search('title', query) , it works for all the worlds except words having 'a' as a character.

๐Ÿ‘ Expected behavior

It should be able to return data having title containing letter 'a' when I provide 'a' in the query.

๐Ÿ‘Ž Actual Behavior

Empty

๐ŸŽฒ Appwrite version

Version 0.10.x

๐Ÿ’ป Operating system

Windows

๐Ÿงฑ Your Environment

No response

๐Ÿ‘€ Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

๐Ÿข Have you read the Code of Conduct?

@AryanShah874, thanks for creating this issue! ๐Ÿ™๐Ÿผ

If you're looking for text that contains a substring, you should use the Query.contains() query. See https://appwrite.io/docs/products/databases/queries.

The Query.search() query uses mariadb's full text search feature. You can read about how it works here.