Filtering JSON Documents By Specific Users
TLDR Loic queried if it's possible to find documents with specific users and suggested using string[]
. Jason confirmed this, recommending to use filter_by: users:=UserA
.

Sep 04, 2023 (3 weeks ago)
Loic
10:58 PMIs it possible to find all documents that contains “userA” in “users” ?
Json object example
{
"id": "123",
"users": [
"userA",
"userB"
]
}
Loic
10:59 PMJason
11:47 PMusers
should be a string[]
and then you can do filter_by: users:=UserA

Typesense
Indexed 2764 threads (79% resolved)
Similar Threads
Filtering Search Results by Array Value in User Data
Michael.M needed guidance searching dataset by array values. Jason pointed to relevant `filter_by` documentation. Michael.M realized their confusion stemmed from an older API version reference. Alexander gave advice on handling outdated Google search results.

Handling 1 Million Documents and User Permissions
Hariharan asked about storing 5k user IDs in documents and filtering. Jason suggested it's the right approach and provided additional best practices.
Addressing Challenges with User Search Across Private Content
Viktor asked for solutions for users to search across private documents. Kishore Nallan suggested implementing joins feature and requested a vote for prioritizing this feature in their backlog. In the meantime, Viktor decided to continue with large filters.