
{ "message": "Server Error", "code": 500, "type": "general_unknown", "version": "0.10.21" }
AppwriteException: Server Error
at Client.<anonymous> (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=031a04b0:844:17)
at Generator.next (<anonymous>)
at fulfilled (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=031a04b0:488:24)

Via dev tools > network tab

{"message":"Server Error","code":500,"type":"general_unknown","version":"0.10.21"} don't have more than this

Somethings like that ?

that's what I sent

Perhaps it's a version error. Appwrite cloud use v 1.1x

Try with only one search ?

Control value of query
?

oh! got a different error: Index not found: name

Try same request but from postman (so via rest / graphql api)

Oh yes, you create a compute index

but if I input the name of the index, then I get: Query not valid: Attribute not found in schema: searchable

Check projectid & databaseid & collectionid ?

project, database and collection is ok

searchable is the index key, you need to pass attribute name

For now I don't know why you've 500 error

FYI
[
Query.search("name", query),
Query.search("description", query)
]
=> AND condition

Perhaps solution should be to create a function wich concat description and name on new attribute, create fulltext index on this new attribute, and search on it ?

if I use "name", then I get "Index not found". So I should have two separate indexes if I don't want to have that kind of attribute + function ? Both cases seem a bit unpractical, but ok...

Is your problem resolved or do you have further questions?

still have to try to implement the solution, but I believe it should work; no further questions

@Steven I try search on compute index (2 string fields) without success. Is this supposed to work, or do we need a single field for fulltext search?

Ya...you might need a full text index with only the search attribute

attribute
with or without 's' ?

Without. If you get a 500, on self hosted, if you look at the appwrite logs, you'll see the error and it might say full text index is missing
Recommended threads
- User (role: guests) missing scopes (["te...
I keep getting this error: ```AppwriteException: User (role: guests) missing scopes (["teams.read"]) at new AppwriteException (/usr/local/server/src/functio...
- I got arhcived project, but I didn't it
Hello, help me please, I can't use my main project in appwrite
- Queries Length Error.
Hi All, I am having a issues across my app with how i am getting data, and just wanted to check if this was an issues with the new changes on appwrite over the...
