Skip to content

Commit 1022d66

Browse files
authored
Merge pull request #86 from HandcartCactus/patch-1
bugfix: remove infinite loop from `index_and_search.py`
2 parents 554c6db + 52dacbd commit 1022d66

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)