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
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support 👋 I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...
- context deadline exceeded
Hi, in one of my projects i continuously receive context deadline exceeded when trying to reach users API from my local machine: https://fra.cloud.appwrite.io/v...
- 🐛 Realtime Flutter SDK Crash – Realtime...
**Summary** When using Appwrite Cloud with the Flutter SDK (latest appwrite release: 21.4.0), Realtime crashes with: ```Unhandled async error: type '_Map<String...