I am sending search queries and I am getting a 500 error [search("restaurantId", ["641e429c2e05e757c5d1"]), search("menu", ["test menu 1"]), limit(20)] ErrorHandler.handle {message: Server Error, code: 500, type: general_unknown, version: 1.2.1}
Just to be sure, are you running the query on the correct database and collection?
yes. inject dependencies in init projec.
Would you please try creating a full text index on only menu?
yes, but this is not working as it should.
i add images response-query-data
- in response have menu value is test
- in query menu value is test menu 2
- in data menu is test
I think the answer is wrong, because test menu 2 has no similarity with test,
If it were the other way around, perhaps we could say that menu test menu 2 contains test and that is why it is displayed.
are my assumptions correct? either ?
That is how search works. It kind of does an OR for each word you pass. You can try to wrap your search term in double quotes to see how it does
i use _genericSearch.field != null ? queries.add(Query.search('menu', _genericSearch.field!)) : null; I don't know how to wrap in double quotes 😦
'"' + _genericSearch.field! + '"'
working.........
Recommended threads
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...