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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...