Since string is deprecated I used varchar, and now I cant use Query.contains , so I setup fulltext index and started using Query.search
the issue is Query.search is very bad at searching, if I have string abc-123 then I have to write abc to get the row, otherwise no other way will match such as bc or 123
I guess it have an issue with special characters or numbers. or it's just bad at doing search.
?
ummm i think varchar should work with contains, let me check
Hey, can you share the issue you get when trying to use contains on a varchar?
For the search issue, there is a 3 char min for matches; bc can never match. 123 should though. Are you sending it as a string? Query.search('', '123')?
this is from console
Thanks, checking on this
yes its string but the other issue with special characters
say the string SWT-2621-44 when searching the same text it will return all ones that match the SWT not caring if match the reset of the text after the - character
This one I think is a quirk of the DB, because - is considered a stop character. Can you try with it in quotes? Like Query.search(attribute, '"SWT-2621-44"')
cool, that works, will update my code to prefix search string with
that still has the weird issue such anything after - must be full to match so SWT-262 wont match SWT-2621
Hmm not sure about this one, will check it out
A fix for the original query issue using varchar with contains is live now, let me know if you still have issues with it
Recommended threads
- CreateRow is doing ListRows on self-host...
### setup ``` appwrite 1.9.5 self-hosted bun 1.3 node-appwrite 27.1.0 ``` ### issue Im running a function on a self hosted 1.9.5 with "node-appwrite": "^27.1.0...
- Accidental deletion of two production da...
Hello Appwrite Support, We accidentally deleted two production databases and urgently need your help restoring them. What happened: On 2026-08-14 at approxima...
- [Solved] Appwrite project paused
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...