Jaydipsinh Vaghela
07/28/2025, 10:39 AMglobal search
in our mobile app and are planning to use Typesense for this feature.
As we reviewed the documentation, we noticed that Typesense requires defining documents based on the structure of the data. Since we’re dealing with multiple tables (like transactions
, externalTransactions
, taxCalculations
, yearlyTaxSummaries
, etc.), I wanted to get some guidance on the best architectural approach.
Here’s our core question: To support global search across all these data types, should we:
1. Create one unified document schema
that merges relevant fields from all the tables into a single collection/document type?
2. Or create multiple collections
, one per table, and query them independently?
Also, how does global search work
across multiple documents/collections in Typesense? Does it support cross-collection search natively or would we need to stitch results together manually?
Any insights, best practices, or examples would be really appreciated. We’re just getting started with Typesense, so trying to understand what makes the most sense long term.
Thanks so much in advance!
JD,
WorkMadeFanis Tharropoulos
07/28/2025, 3:02 PMJaydipsinh Vaghela
07/29/2025, 5:58 AM