Skip to content
Back

Searching by attribute "songName" requires fulltext index error, despite having a fulltext index

  • 0
  • Databases
  • Cloud
Nibbles
1 Jan, 2025, 17:53

I'm trying to make a search function, but even though the attributes that I am using for Query.search() have a fulltext index, I get an error stating that the attribute requires a fulltext index.

This is my code that lists the documents from the database with the queries:

TypeScript
    levels, err := database.ListDocuments(
        "mixtaper",
        "levels",
        database.WithListDocumentsQueries(
            []string{
                query.Search("songName", searchQuery),
                query.Search("songArtist", searchQuery),
                query.Search("description", searchQuery),
                query.Search("chartName", searchQuery),
            },
        ),
    )
TL;DR
Issue: Error message states that the attribute "songName" requires a fulltext index despite having one when using `Query.search()` function. Solution: Ensure that the attribute "songName" is specifically set as FULLTEXT in the database schema configuration.
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