Restricting data size
iamgururaj opened this issue · 3 comments
Hi,
I can't find a way to restrict the data size using Query DSL. Setting "from" and "size" in the source param does not work. Request your help with this. If this is not available I can modify the existing codebase to send a pull request to include from and size.
Thanks.
Your contribution is welcome.
Query DSL in the dataformat plugin works on a scroll-scan search.
Therefore, adding from/size feature, I think you need to add it, not modify the current implementation.
I guess this is because the plugin by default uses elasticsearch scroll search. I have done some changes to disable scroll search using a url param. will send a pull request asap.
Thanks for your reply.
Hi,
I have created a pull request - #9
for this issue. An optional parameter disableScroll has been introduced which when enabled will disable the default scrolled search. For more info please have a look into the commit description.
Thanks.