#community-help

Limits on Multi-search Operations

TLDR Jim queries about a discrepancy between the documentation and error message regarding multi-search limits. Jason clarifies it’s a documentation typo, the default limit is 50.

Powered by Struct AI

2

6
24mo
Solved
Join the chat
Nov 16, 2021 (24 months ago)
Jim
Photo of md5-3fe542460f1a4ade443d8206ee4b4933
Jim
06:51 PM
Is there a default limit to the number of searches you can include in a multi-search? The documentation seems to say that there is no limit unless you specify the "limit_multi_searches" argument, but if I try too large of a multisearch, I get an error saying "Number of multi searches exceeds limit_multi_searches parameter", even though I'm not specifying that parameter
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
07:01 PM
Hmm Jim may I know the number of multi-searches that triggers that error?
Jim
Photo of md5-3fe542460f1a4ade443d8206ee4b4933
Jim
07:07 PM
I got it when doing a multi-search with 1000 searches. I don't actually need to do that many in one go, but I'm trying to figure out the limits for my application. I also haven't experimented enough to figure out exactly where the limit is. 50 works, 1000 doesn't, but I haven't tried 100, 500, etc.
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
07:08 PM
Just checked the code, the docs have a typo. The default limit is actually 50, not unlimited

1

07:09
Jason
07:09 PM
But can be changed using the limit_multi_searches param
Jim
Photo of md5-3fe542460f1a4ade443d8206ee4b4933
Jim
07:09 PM
Thank you!

1