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.

GET
url:
/index-name/document-type/_search?search_type=scan&scroll=5m&timeout=3m&size=4000
body:
{"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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/34c2df92-85cf-4909-b6a3-96061835b146%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.