Back

forbidden fulltext search on array attributes

  • 0
  • Self Hosted
  • Web
Gosego
4 Apr, 2024, 11:08

Hi i successfully upgraded my self hosted appwrite from 1.4.3 to 1.5.4 yesterday but now i get errors when i try to create a fulltext search index on an array

error: fulltext index forbidden on array attributes

TL;DR
Title: Forbidden Fulltext Search on Array Attributes Messages: - Developers should now use Query.contains instead of Query.search for searching an array attribute, as the former is more efficient. - The previous method was removed in a certain version. - No index is required to use Query.contains.
WhiteWalker72
4 Apr, 2024, 12:56

I think the only reason to set a fulltext search index on an array would be to do a Query.search. Instead of using Query.search you now need to use Query.contains. As far as I know you don't need an index to use Query.contains.

D5
4 Apr, 2024, 13:02

It was a bit hacky so it was removed in that version. As @WhiteWalker72 said, now it's better using contains query

Gosego
5 Apr, 2024, 12:07

thank you

WhiteWalker72
5 Apr, 2024, 13:00

No problem! Feel free add [SOLVED] in front of the title so others can see your issue is solved 🙂

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