Restrict query result size when using scan and scroll API

Hi all,

I'm using ES 0.90.13.

The below query is what I use for the scan and scroll operation.

{"sort": ["date_value"], "query": {"term": {"field1": false}}, "from": 0,
"size": 10000}

My requirement is to restrict the result-set (different from the scroll
batch size). How do I achieve this?
Is there a way to remove the batch-size and result set ambiguity?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit