Hi Typesense community - I need to run a search in one collection and display how many related documents exist in a second collection (joined by a common field). Query-time performance is important. What’s the recommended approach for this?
h
Hayden Hoang
12/07/2025, 4:35 AM
Hi John,
If you mean displaying the count of related documents, Typesense has support for this using the `related_docs_count` parameter. This only available in v30-rc though.
j
John Sokol
12/07/2025, 4:32 PM
Got it. Can this related docs count parameter also be filtered by fields in the second collection?