SliceQL(start, end=None, *args, **kwargs)¶
Restrict the size of the
k(given by the request)
Example:: - !ReduceAllDriver
reverse: true field: ‘score__value’ traversal_paths: [‘m’]
start: 0 end: 50 traversal_paths: [‘m’]
SliceQL will ensure that only the first 50 documents are returned from this Pod
int) – Zero-based index at which to start extraction.
int]) – Zero-based index before which to end extraction. slice extracts up to but not including end. For example, take(1,4) extracts the second element through the fourth element (elements indexed 1, 2, and 3).
args – additional positional arguments which are just used for the parent initialization
kwargs – additional key value arguments which are just used for the parent initialization