I'm a selftaught (web) developer. On sunny days, you can find me hiking through the Teutoburg Forest, on rainy days coding or with a good fiction novel in hand.
Hi, you were reaaallllly close to getting it right. The issue you were having with is_public,username <- Does not qualify as a valid index key - Link to image is that you had a comma in the Index Key. We don't allow commas in the name of an index because that really messes with parsing SQL :P
I'm a selftaught (web) developer. On sunny days, you can find me hiking through the Teutoburg Forest, on rainy days coding or with a good fiction novel in hand.
Hello guys,
I'm struggling with Appwrite indexes. Here's my use case:
id,usernameandis_publicuser.name)true)For this, I tried to create a search index. I tried a few names:
is_public-username<- Received error message in the browser's console:AppwriteException: Index not found: user_id,is_public- Link to imageis_public,username<- Does not qualify as a valid index key - Link to imageHere's the part of the FE code that I use to specify the query:
Unfortunatly, I could not find any explanation on what I could do. So my question is:
Hi, you were reaaallllly close to getting it right. The issue you were having with
is_public,username <- Does not qualify as a valid index key - Link to imageis that you had a comma in theIndex Key. We don't allow commas in the name of an index because that really messes with parsing SQL :PFor example, this is from my project, patina-bot
Here's how I would create a two column index:
And here's what the created index looks like
thank you so much for your reply. Works like a charm now 🥳