I understand that the default page size is 10 hits, which can be
changed via config or in a query by specifying "from" and "size". I
have a scenario where I want all hits. I can be reasonably confident
that the results set will not be too large. I tried setting size to
0, -1 and max-int (in C#). The first two returned no results. The
latter seems to work, functionally speaking, but it seems there is a
price to pay. My queries are timing out even though the number of
hits would be not too large (maybe 100-200).
I could set a high number but much lower than max int. But I wonder,
does performance always deteriorate with page size, even if there are
few hits? Is there a recommended way to approach this scenario?