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
- Cloud 500 error
- float
Hello everyone, So, I created a column of type **float** with the **min** and **required** options, I noticed that it wouldn't let me set a **2 decimal points ...
- Database backups are not really working
As you can see, backups almost never work and this is repeated behaviour for a long time already. I have the same issue across different databases and different...