Retrieving Multiple Documents by ID in Typesense
TLDR Bruno asked about retrieving multiple documents by ID in Typesense. Jason suggested using filter_by: id:=
and gave advice on POST requests and order preservation. Bruno successfully implemented these solutions.



Jun 15, 2023 (3 months ago)
Bruno
10:38 PMJason
10:39 PMfilter_by: id:=[1,2,3]
Bruno
10:41 PMBruno
10:45 PMJason
10:46 PMJul 03, 2023 (2 months ago)
Bruno
07:51 PMq:'*', filter...
) in a collection or do I always need to build a GET request string?Bruno
07:52 PM<http://localhost:8108/collections/foo/documents/search>
Bruno
07:52 PMJason
07:53 PMBruno
07:54 PMJason
07:54 PMBruno
07:57 PM
Bruno
08:15 PMJason
08:15 PMBruno
08:20 PM
Bruno
08:30 PM
Bruno
08:30 PMthis.current.results.plants.items.map(function(el,i){order += el.id + ':' + (i+1) + ',';buffer.push(parseInt(el.id))})
Bruno
08:30 PM

Typesense
Indexed 2764 threads (79% resolved)
Similar Threads
Multiple Filters and JSON Requests in Typesense
Manish asked about multiple filter_by arguments, JSON input, and using multisearch. Jason offered typesense documentation links, examples, and how to use JSON formatted requests with multisearch. Ed shared a similar use case.


Integrating Semantic Search with Typesense
Krish wants to integrate a semantic search functionality with typesense but struggles with the limitations. Kishore Nallan provides resources, clarifications and workarounds to the raised issues.

Moving from Algolia to Typesense: Questions and Answers
Juan sought advice from Kishore Nallan about moving from Algolia to Typesense, handling MultiSearch, setting parameters, checking imported documents, and a specific syntax query.

Fixing Multiple Document Retrieval in Typesense
Phil needed an efficient way to retrieve multiple documents by id. Kishore Nallan proposed a solution available in a pre-release build. After some bug fixing regarding id matching by Jason and Kishore Nallan, Phil successfully tested the solution.



Querying with Not-in in Typesense
Masahiro inquired about using not-in queries in Typesense. Kishore Nallan explained how to conduct such queries by using the "-" operator in the query string, and assisted Masahiro with issues stemming from a high number of exclusion tokens. The problem was eventually resolved by switching to the `multi_search` endpoint.


