Open MarkoRisticSting opened 1 year ago
Ah, will fix the types for this. On a side note, even though the multi_search endpoint supports limit_multi_searches
, I would recommend embedding it in a Scoped Search API key, so it cannot be modified.
Thanks for quick response. Does it makes sense to add it to GenerateScopedSearchKeyParams
also? @jasonbosco
Yeah, I'll probably just add limit_multi_searches
only to GenerateScopedSearchKeyParams
to encourage recommended usage of this param.
Could you try this with v1.6.0-1
?
Typescript doesn't complain anymore, let me figure out how Scoped Search API key works now 😂 thanks again.
Looks like x-typesense-api-key
when sent as query param is not overriding default x-typesense-api-key
, so my limit is not increased? @jasonbosco
Any idea?
Description
There is no option of selecting
limit_multi_searches
inmultiSearch
using typescript.Steps to reproduce
typescript complains
Expected Behavior
To already have option for
limit_multi_searches
inMultiSearchRequestSchema
We can see that it is missing.Actual Behavior
TS2345: Argument of type
{ collection: string; limit_multi_searches: number; }' is not assignable to parameter of type 'Partial<MultiSearchRequestSchema>
.Metadata
1.5.4
Mac OS