Henrik Sjödahl
05/07/2025, 8:05 AMconst response = typesense.multiSearch.perform<[product_categories: ProductCategory, products: ProductSearch]>(
{
searches: [
{
collection: 'product_categories',
q: searchValue.value,
query_by: 'name,description',
limit: 5,
},
{
collection: 'products.search',
q: searchValue.value,
...searchParams.value,
limit: 4,
},
],
},
)
The type returns as UnionSearchResponse<ProductCategory | ProductSearch>
instead of MultiSearchResponse<[product_categories: ProductCategory, products: Product]>
Typesense ^2.0.3