From 46553f614f10f89fb46d657ecc4e8985b70dd2f6 Mon Sep 17 00:00:00 2001 From: Jim Scarborough Date: Thu, 6 May 2021 16:51:25 -0400 Subject: [PATCH] Update README.rst Sorting is necessary for cursors --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 6dc80f0c..4f7fba8f 100644 --- a/README.rst +++ b/README.rst @@ -113,7 +113,7 @@ Basic usage looks like: }) # Traverse a cursor using its iterator: - for doc in solr.search('*:*',fl='id',cursorMark='*'): + for doc in solr.search('*:*',fl='id',sort='id ASC',cursorMark='*'): print(doc['id']) # You can also perform More Like This searches, if your Solr is configured