Setting search size to unlimited?

alerting

(Jamie Burks) #1

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


(Mark Walkom) #2

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


(Jamie Burks) #3

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


(system) #4

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