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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.
- Seed db
hello there... is this correct way to seed appwrite