Fetching Multiple Documents from Collection Using IDs
TLDR David inquired about fetching multiple documents from a collection using ids. Kishore Nallan provided a solution, which was well-received by David.
Powered by Struct AI
1
3
3mo
Aug 17, 2023 (3 months ago)
David
David
12:20 PMcan i fetch multiple documents from a collection by using its ids? i know about `
but can I do like
?
documents/124
but can I do like
documents/124,125,126
?
Kishore Nallan
Kishore Nallan
12:38 PM"filter_by": "id: [124, 125, 126]"
David
David
12:40 PM🙏 thanks Kishore Nallan
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
Retrieving Multiple Documents Through API
Chetan inquired about retrieving multiple documents through API. Jason advised using filter_by for this purpose.
3
4mo
Clarifying Filter_by IDs in API Requests
Richard asked about deleting multiple documents by ID using `filter_by=id: [id1, id2, id3]`. Jason clarified that it should be `filter_by=id:=[1,2,3]` and recommended using `:=` for exact matches.
4
10mo
Adding and Filtering Multiple IDs to a 'permissions' Field
Sean sought advice on restricting document access by adding multiple numeric IDs to a 'permissions' field. Sandip confirmed it was possible and provided a search request example.
4
3mo