Back

[SOLVED] Full Text Search In String Array

  • 0
  • Databases
djcali
30 Jun, 2023, 21:31

Hello, I have an array attribute called groups with say 2 documents like this A) ['john doe', 'testperson5'] B) ['jane doe', 'testperson'] when i use Query.search('groups', 'testperson') I am getting both documents. Is there a way that i can and get exact match using Query.search?

Thanks

TL;DR
The user wants to perform a full text search in a string array attribute called 'groups'. They want to get an exact match when searching for a keyword. A user named Steven suggests wrapping the keyword with double quotes. The user plans to try this and report back.
Drake
30 Jun, 2023, 21:47

Maybe if you wrap the keyword with double quotes

djcali
30 Jun, 2023, 21:51

Ok, I will try that and report back.

djcali
30 Jun, 2023, 21:57

Yep! That will do the trick. Thanks Steven.

Drake
30 Jun, 2023, 21:59

[SOLVED] Full Text Search In String Array

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