Setting search size to unlimited?

Is there some way to set the search size parameter to unlimited? It defaults to 10, and I can set it to some arbitrary large number, but I was hoping there was some way to just set it to unlimited. I just want to have all of the search hits included in my result context.

Thanks

That's not a great idea, check out https://www.elastic.co/guide/en/elasticsearch/reference/6.4/search-request-from-size.html

Understood, but in this case we know it's never going to be an overly large result set. I had seen that page with the default 10,000 mention. I'll just pick some reasonable large number, say 1,000 and go with that. Any more than that means we have a bigger problem anyway,.

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.