
Hi. I have a collection of documents with some string attributes. This collection have a few similar full-text indexes on these attributes. I have also created one more full-text index for the indernal $id attribute.
Search over $id works differently. It only returns documents when there is a startsWith-like match.
E.g. the given document with $id 12345
will be returned for the search values '12345'
, '123'
, but not for the '2345'
. Is that expected?

Yes, this is expected. See https://github.com/appwrite/appwrite/discussions/5005#discussioncomment-4681079 for details about how search works.

You're right, got it. Thanks for the hint. Worth to mention on the https://appwrite.io/docs/products/databases/queries page, probably.
Recommended threads
- createDocument bug
why Im getting this??? let me make it easy for you. Do you have Indexes? No. Do you have relationship attributes? No. And the funny part is that it creates the ...
- "Invalid relationship value. Must be eit...
In my app i am trying to update the documents in my databse from a form in my app, and i am getting this error Error updating event users: AppwriteException: I...
- grant permisions only to users in collec...
I'm building a web app and instead of using Appwrite Auth, I made my own custom auth system that stores user data in documents. I have a "Profile" page where lo...
