Skip to content

Commit 057c7a4

Browse files
committed
clear outputs
1 parent ce6f635 commit 057c7a4

File tree

1 file changed

+10
-49
lines changed

1 file changed

+10
-49
lines changed

Quickstart-ACL/acl.ipynb

Lines changed: 10 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
{
2020
"cell_type": "code",
21-
"execution_count": 1,
21+
"execution_count": null,
2222
"id": "2975a7f5",
2323
"metadata": {},
2424
"outputs": [],
@@ -46,18 +46,10 @@
4646
},
4747
{
4848
"cell_type": "code",
49-
"execution_count": 2,
49+
"execution_count": null,
5050
"id": "9863061f",
5151
"metadata": {},
52-
"outputs": [
53-
{
54-
"name": "stdout",
55-
"output_type": "stream",
56-
"text": [
57-
"Index 'acl-sample' created with permission filter option enabled.\n"
58-
]
59-
}
60-
],
52+
"outputs": [],
6153
"source": [
6254
"from azure.search.documents.indexes.models import SearchField, SearchIndex, PermissionFilter, SearchIndexPermissionFilterOption\n",
6355
"from azure.search.documents.indexes import SearchIndexClient\n",
@@ -88,7 +80,7 @@
8880
},
8981
{
9082
"cell_type": "code",
91-
"execution_count": 3,
83+
"execution_count": null,
9284
"id": "63904f09",
9385
"metadata": {},
9486
"outputs": [],
@@ -111,18 +103,10 @@
111103
},
112104
{
113105
"cell_type": "code",
114-
"execution_count": 14,
106+
"execution_count": null,
115107
"id": "8fb830a1",
116108
"metadata": {},
117-
"outputs": [
118-
{
119-
"name": "stdout",
120-
"output_type": "stream",
121-
"text": [
122-
"Documents uploaded to the index.\n"
123-
]
124-
}
125-
],
109+
"outputs": [],
126110
"source": [
127111
"from azure.search.documents import SearchClient\n",
128112
"search_client = SearchClient(endpoint=endpoint, index_name=index_name, credential=credential)\n",
@@ -148,21 +132,10 @@
148132
},
149133
{
150134
"cell_type": "code",
151-
"execution_count": 16,
135+
"execution_count": null,
152136
"id": "cd872e8c",
153137
"metadata": {},
154-
"outputs": [
155-
{
156-
"name": "stdout",
157-
"output_type": "stream",
158-
"text": [
159-
"Name: Document 1, OID: ['44e5f686-35a1-4e2c-9ff3-7b6adafcd3c3'], Group: ['ec5aece9-33fc-4b2e-abe1-aedf771357a3']\n",
160-
"Name: Document 2, OID: ['all'], Group: ['ec5aece9-33fc-4b2e-abe1-aedf771357a3']\n",
161-
"Name: Document 3, OID: ['44e5f686-35a1-4e2c-9ff3-7b6adafcd3c3'], Group: ['all']\n",
162-
"Name: Document 5, OID: ['none'], Group: ['ec5aece9-33fc-4b2e-abe1-aedf771357a3']\n"
163-
]
164-
}
165-
],
138+
"outputs": [],
166139
"source": [
167140
"results = search_client.search(search_text=\"*\", x_ms_query_source_authorization=token_provider(), select=\"name,oid,group\", order_by=\"id asc\")\n",
168141
"\n",
@@ -180,22 +153,10 @@
180153
},
181154
{
182155
"cell_type": "code",
183-
"execution_count": 17,
156+
"execution_count": null,
184157
"id": "a1f2f2a0",
185158
"metadata": {},
186-
"outputs": [
187-
{
188-
"name": "stdout",
189-
"output_type": "stream",
190-
"text": [
191-
"Name: Document 1, OID: ['44e5f686-35a1-4e2c-9ff3-7b6adafcd3c3'], Group: ['ec5aece9-33fc-4b2e-abe1-aedf771357a3']\n",
192-
"Name: Document 2, OID: ['all'], Group: ['ec5aece9-33fc-4b2e-abe1-aedf771357a3']\n",
193-
"Name: Document 3, OID: ['44e5f686-35a1-4e2c-9ff3-7b6adafcd3c3'], Group: ['all']\n",
194-
"Name: Document 4, OID: ['none'], Group: ['none']\n",
195-
"Name: Document 5, OID: ['none'], Group: ['ec5aece9-33fc-4b2e-abe1-aedf771357a3']\n"
196-
]
197-
}
198-
],
159+
"outputs": [],
199160
"source": [
200161
"results = search_client.search(search_text=\"*\", x_ms_query_source_authorization=None, select=\"name,oid,group\", order_by=\"id asc\")\n",
201162
"\n",

0 commit comments

Comments
 (0)