Rank 1: Thread
Hey, i need help in writing query for getting documents in a collection filtered by user_id
Votes
0
Replies
16
Participants
Unknown
Messages
17
Rank 1: Thread
Hey, i need help in writing query for getting documents in a collection filtered by user_id
Moderator
You need to create an index
Moderator
From appwrite dashboard
Moderator
If you already created one and still see such error, send here the code causing it and what you're indexing (appwrite dashboard screenshot of the index section)
Moderator
@Surya Ashish
Rank 1: Thread
wait
Moderator
Okay 😄
Rank 1: Thread
Rank 1: Thread
tell me how to write an index for this use case
Moderator
You dont need to write it, go to your appwrite dashboard and define it
Rank 1: Thread
how to define them
Rank 1: Thread
what values should i put in
Rank 3: Container
make index_type as fulltext
Rank 3: Container
select the attribute name which you wanna query
Rank 1: Thread
thanks
Admin
You only need a full text index if you're using the search query. Key index is probably enough
Rank 3: Container
Yeah that's what I was saying as it's related to querying