MCPcopy
hub / github.com/redis/redis-py / paging

Method paging

redis/commands/search/query.py:249–258  ·  view source on GitHub ↗

Set the paging for the query (defaults to 0..10). - **offset**: Paging offset for the results. Defaults to 0 - **num**: How many results do we want

(self, offset: int, num: int)

Source from the content-addressed store, hash-verified

247 return args
248
249 def paging(self, offset: int, num: int) -> "Query":
250 """
251 Set the paging for the query (defaults to 0..10).
252
253 - **offset**: Paging offset for the results. Defaults to 0
254 - **num**: How many results do we want
255 """
256 self._offset = offset
257 self._num = num
258 return self
259
260 def verbatim(self) -> "Query":
261 """Set the query to be verbatim, i.e., use no query expansion

Callers 7

search_vss.pyFile · 0.80
geo_index.pyFile · 0.80
query_range.pyFile · 0.80
test_exampleMethod · 0.80
test_summarizeMethod · 0.80
test_exampleMethod · 0.80
test_summarizeMethod · 0.80

Calls

no outgoing calls

Tested by 4

test_exampleMethod · 0.64
test_summarizeMethod · 0.64
test_exampleMethod · 0.64
test_summarizeMethod · 0.64