Skip to content

Commit 52dacbd

Browse files
bugfix: remove infinite loop from index_and_search.py
+pagination
1 parent fbe6d94 commit 52dacbd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/index_and_search.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
res = client.collections['books'].documents.search({
6868
'q': 'the',
6969
'query_by': 'title',
70-
'sort_by': 'ratings_count:desc'
70+
'sort_by': 'ratings_count:desc',
71+
'page': i,
72+
'per_page': 10,
7173
})
7274
print(res['found'])
75+
i += 1

0 commit comments

Comments
 (0)