Nicolás Netz
12/18/2024, 4:04 PMmulti_search
in my use case:
• I have three collections: products, countries, and companies.
• I perform a multi_search
that queries each of these three collections.
• I use the per_page
parameter in the common_search_params
.
Here’s the problem:
If I set per_page
to 12, I expected to get a total of 12 results across all collections. However, I get 36 results instead (12 from each collection).
Is there a workaround to enforce a total limit of 12 results across all collections combined?
I’d be happy to clarify or discuss this further if needed. On a positive note, I’m excited because we’re planning to use Typesense in production on one of our sites starting January!
Thanks in advance for your help!
Best regards,
NicolásJason Bosco
12/18/2024, 7:54 PMper_page
parameter inside multi_search
applies to each search, and not across searches. Currently, there's no way to limit the number of items across all searchesJason Bosco
12/18/2024, 7:55 PMNicolás Netz
12/18/2024, 7:55 PMHarpreet Sangar
12/19/2024, 1:23 AMIs there a workaround to enforce a total limit of 12 results across all collections combined?You can try setting
per_page
to 4.Nicolás Netz
12/19/2024, 1:14 PMHarpreet Sangar
12/19/2024, 1:16 PMNicolás Netz
12/19/2024, 1:17 PMHarpreet Sangar
12/19/2024, 1:19 PMNicolás Netz
12/19/2024, 1:25 PMHarpreet Sangar
01/03/2025, 5:39 AM