Search Service
Retrieve limited chunks
The search.run()
method accepts the parameter [limit] to
control the amount of data to retrieve from bigdata. By default,
[limit] specifies the number of desired documents to
download, and the logic will send multiple requests to bigdata to gather
all those documents, but it is not possible to control the amount of
retrieved chunks or usage. (See monitor_usage)
In some use cases, customers want to specify the number of requested
chunks to control usage. For instance, the following code requests only
100
chunks and if it returns all requested 100
chunks, it will consume
10
API query unit.
Output:
The response might contain a smaller number of chunks due to discarding duplicates.