Closed HaraldNordgren closed 4 months ago
Hi @HaraldNordgren
What is happening is the Request
call in your first example is overwriting the request object thus resetting the values set above.
If you intend to use the From
and Size
functions you should also use the Query
to set the query arguments, otherwise the second syntax works fine and as intended.
I construct my query like this:
It always gives me 10 results back. I can hard-code values like this and the result is still only 10 results back:
I verified that by setting it directly on the
search.Request
works:These function should be deleted if they are not usable.