Back

SvelteKIT, using fulltext search with multiple attributes

  • 0
  • Web
Showdey
28 Jan, 2024, 10:44

If i want to use an index which is created like the one in the photo below, how can i point to that index? If I will do something like this:

TypeScript
Query.search("search", "something")

I get an error:

TypeScript
Invalid query: Attribute not found in schema: name city
TL;DR
Developers are experiencing an error when trying to use a specific index for full-text search with multiple attributes in SvelteKIT. They are trying to point to the index using `Query.search("search", "something")`, but are getting an "Invalid query: Attribute not found in schema: name city" error. They are looking for guidance on how to resolve this issue and successfully use the index. Solution: The error message suggests that there might be an issue with the attributes `name` and `city` in the schema. Developers should check the schema definition to ensure that the attributes are correctly defined. It's also important to make sure
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