Skip to content
Back

failed to create another index

  • 0
  • Databases
  • Cloud
Qoyyuum
14 Feb, 2025, 14:43

After pushing from appwrite.json I kept getting the following error:

TypeScript
Success: Created 10 attributes
Info: Creating indexes ...
Error: Index 'status_idx' failed!
    at C:\ProgramData\nvm\v20.11.1\node_modules\appwrite-cli\lib\commands\push.js:320:31
    at Array.filter (<anonymous>)
    at Object.expectIndexes (C:\ProgramData\nvm\v20.11.1\node_modules\appwrite-cli\lib\commands\push.js:317:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async createIndexes (C:\ProgramData\nvm\v20.11.1\node_modules\appwrite-cli\lib\commands\push.js:863:20)
    at async pushCollection (C:\ProgramData\nvm\v20.11.1\node_modules\appwrite-cli\lib\commands\push.js:1434:13)  

Then I tried manually creating the status index via the console, still failed (see attached screenshots). But nothing is telling me why it failed. What am I doing wrong?

TL;DR
Developers are experiencing issues creating an index using the appwrite-cli, leading to an error message. Even manual creation of the status index in the console is failing. The concern is regarding the type of index used (fulltext instead of key) and potential performance problems in queries. Solution: Check the index creation method, ensure it's correct to avoid the error, and determine the impact of using fulltext index on query performance.
Qoyyuum
14 Feb, 2025, 14:45

It works as "fulltext" type instead of "key" though. Not sure if this is going to cause a problem in queries performance

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more