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
- Realtime api and labels as permission
in my tables i set labels as permission and real-time capabilities stopped working. Before when i was having "any" role everything was working. Note: user have...
- API key not having access to database
My api key with read and write access to row and tables and DB I not working. In my test the results returned an empty database. This is the second time I am...
- How to bypass the rate limit on the back...
Once a month my app has a ton of usage and I always run into the Too many requests 429 error. I am trying to optimize the queues and jobs to manage that, but a...