|
18 | 18 | }, |
19 | 19 | { |
20 | 20 | "cell_type": "code", |
21 | | - "execution_count": 1, |
| 21 | + "execution_count": null, |
22 | 22 | "id": "2975a7f5", |
23 | 23 | "metadata": {}, |
24 | 24 | "outputs": [], |
|
46 | 46 | }, |
47 | 47 | { |
48 | 48 | "cell_type": "code", |
49 | | - "execution_count": 2, |
| 49 | + "execution_count": null, |
50 | 50 | "id": "9863061f", |
51 | 51 | "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": [], |
61 | 53 | "source": [ |
62 | 54 | "from azure.search.documents.indexes.models import SearchField, SearchIndex, PermissionFilter, SearchIndexPermissionFilterOption\n", |
63 | 55 | "from azure.search.documents.indexes import SearchIndexClient\n", |
|
88 | 80 | }, |
89 | 81 | { |
90 | 82 | "cell_type": "code", |
91 | | - "execution_count": 3, |
| 83 | + "execution_count": null, |
92 | 84 | "id": "63904f09", |
93 | 85 | "metadata": {}, |
94 | 86 | "outputs": [], |
|
111 | 103 | }, |
112 | 104 | { |
113 | 105 | "cell_type": "code", |
114 | | - "execution_count": 14, |
| 106 | + "execution_count": null, |
115 | 107 | "id": "8fb830a1", |
116 | 108 | "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": [], |
126 | 110 | "source": [ |
127 | 111 | "from azure.search.documents import SearchClient\n", |
128 | 112 | "search_client = SearchClient(endpoint=endpoint, index_name=index_name, credential=credential)\n", |
|
148 | 132 | }, |
149 | 133 | { |
150 | 134 | "cell_type": "code", |
151 | | - "execution_count": 16, |
| 135 | + "execution_count": null, |
152 | 136 | "id": "cd872e8c", |
153 | 137 | "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": [], |
166 | 139 | "source": [ |
167 | 140 | "results = search_client.search(search_text=\"*\", x_ms_query_source_authorization=token_provider(), select=\"name,oid,group\", order_by=\"id asc\")\n", |
168 | 141 | "\n", |
|
180 | 153 | }, |
181 | 154 | { |
182 | 155 | "cell_type": "code", |
183 | | - "execution_count": 17, |
| 156 | + "execution_count": null, |
184 | 157 | "id": "a1f2f2a0", |
185 | 158 | "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": [], |
199 | 160 | "source": [ |
200 | 161 | "results = search_client.search(search_text=\"*\", x_ms_query_source_authorization=None, select=\"name,oid,group\", order_by=\"id asc\")\n", |
201 | 162 | "\n", |
|
0 commit comments