I'm using full text search on product name I have listed product name as this
- Carpet Red 123
- Dustbin Red 134
- Carpet Blue 233
when I try to search for "Carpet Red", it works fine but when I search for "Red Carpet" it doesn't show the product. How do I achieve this result??
Are you wrapping with double quotes? If you are, then the order matters
Otherwise... It could be because it's actually searching for word starting with carpet...
i haven't wrapped it in double or single quotes but i have it on the lowercase
does it matter?
Query.search("name", search),
My query looks like this where search is string
when I get this in console
search("name", ["red carpet"])
It shows like this.
How should I complete it?
BTW i'm using flutter/dart
No
In that case...I think it's because we add a wildcard at the end of the search. Try searching for carpe and compare with carpet
Red is probably ignored because it's too short
If I search for carpet it shows
both gives me empty array
do you mean carpe?
you mean "red carpet" gives empty array?
yea....
Recommended threads
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- Update row sheet not loading
After right clicking a row header and click update, the sidebar fails to load (never-ending skeleton)
- DB Relational Table Request
Hi, I'd like to suggest a rewording of the relationships between tables. - Current wording: storeOperatingDays can contain one storeId ...