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
- Skip total counts crash the query
Hello, When adding the total parameter (either true, the default, or false) to the listRows function, it raises the following error: `type 'bool' is not a sub...
- Attach Dart debugger for locally deploye...
Hello there, I was wondering if it is possible to attach debugger to dart function, that I run locally. It would make development much easier :-). Thank you.
- total parameter not working correctly in...
Hello Appwrite team, I'm experiencing issues with the total parameter in the listRows() method (TablesDB) across multiple SDKs. **Issue 1**: Node.js SDK (node...