We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79f9947 commit e175412Copy full SHA for e175412
examples/sharepoint/search/search_simple.py
@@ -2,7 +2,12 @@
2
from tests import test_site_url, test_user_credentials
3
4
ctx = ClientContext(test_site_url).with_credentials(test_user_credentials)
5
-result = ctx.search.query("IsDocument:1").execute_query()
6
-results = result.value.PrimaryQueryResult.RelevantResults
7
-for row in results.Table.Rows:
+result = ctx.search.query("IsDocument:1", row_limit=10).execute_query()
+for row in result.value.PrimaryQueryResult.RelevantResults.Table.Rows:
+ print(row.Cells["Path"])
8
+
9
+print("Next query..")
10
11
+result = ctx.search.query("IsDocument:0", row_limit=5).execute_query()
12
13
print(row.Cells["Path"])
0 commit comments