From 52dacbd0dc3be5012dc865a415f820a8b0552a43 Mon Sep 17 00:00:00 2001 From: Elias <38086802+HandcartCactus@users.noreply.github.com> Date: Sun, 27 Apr 2025 00:45:22 -0400 Subject: [PATCH] bugfix: remove infinite loop from `index_and_search.py` +pagination --- examples/index_and_search.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/index_and_search.py b/examples/index_and_search.py index e1422cf..219c0a0 100644 --- a/examples/index_and_search.py +++ b/examples/index_and_search.py @@ -67,6 +67,9 @@ res = client.collections['books'].documents.search({ 'q': 'the', 'query_by': 'title', - 'sort_by': 'ratings_count:desc' + 'sort_by': 'ratings_count:desc', + 'page': i, + 'per_page': 10, }) print(res['found']) + i += 1