You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/index-add-scoring-profiles.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,13 +57,13 @@ The following definition shows a simple profile named "geo". This example boosts
57
57
To use this scoring profile, your query is formulated to specify scoringProfile parameter in the request. If you're using the REST API, queries are specified through GET and POST requests. In the following example, "currentLocation" has a delimiter of a single dash (`-`). It's followed by longitude and latitude coordinates, where longitude is a negative value.
58
58
59
59
```http
60
-
GET /indexes/hotels/docs?search+inn&scoringProfile=geo&scoringParameter=currentLocation--122.123,44.77233&api-version=2020-06-30
60
+
GET /indexes/hotels/docs?search+inn&scoringProfile=geo&scoringParameter=currentLocation--122.123,44.77233&api-version=2023-11-01
61
61
```
62
62
63
63
Notice the syntax differences when using POST. In POST, "scoringParameters" is plural and it's an array.
@@ -83,7 +83,7 @@ The following links describe the Similarity property in the Azure SDKs.
83
83
You can also use the [REST API](/rest/api/searchservice/create-index). The following example creates a new index with the "similarity" property set to BM25:
84
84
85
85
```http
86
-
PUT [service-name].search.windows.net/indexes/[index name]?api-version=2020-06-30
86
+
PUT [service-name].search.windows.net/indexes/[index name]?api-version=2023-11-01
Copy file name to clipboardExpand all lines: articles/search/index-similarity-and-scoring.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ By default, the score of a document is calculated based on statistical propertie
100
100
If you prefer to compute the score based on the statistical properties across all shards, you can do so by adding `scoringStatistics=global` as a [query parameter](/rest/api/searchservice/search-documents) (or add `"scoringStatistics": "global"` as a body parameter of the [query request](/rest/api/searchservice/search-documents)).
101
101
102
102
```http
103
-
POST https://[service name].search.windows.net/indexes/hotels/docs/search?api-version=2020-06-30
103
+
POST https://[service name].search.windows.net/indexes/hotels/docs/search?api-version=2023-11-01
104
104
{
105
105
"search": "<query string>",
106
106
"scoringStatistics": "global"
@@ -110,7 +110,7 @@ POST https://[service name].search.windows.net/indexes/hotels/docs/search?api-ve
110
110
Using `scoringStatistics` will ensure that all shards in the same replica provide the same results. That said, different replicas may be slightly different from one another as they're always getting updated with the latest changes to your index. In some scenarios, you may want your users to get more consistent results during a "query session". In such scenarios, you can provide a `sessionId` as part of your queries. The `sessionId` is a unique string that you create to refer to a unique user session.
111
111
112
112
```http
113
-
POST https://[service name].search.windows.net/indexes/hotels/docs/search?api-version=2020-06-30
113
+
POST https://[service name].search.windows.net/indexes/hotels/docs/search?api-version=2023-11-01
Copy file name to clipboardExpand all lines: articles/search/search-add-autocomplete-suggestions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ The remainder of this article is focused on queries and client code. It uses Jav
32
32
Elements of a request include one of the search-as-you-type APIs, a partial query, and a suggester. The following script illustrates components of a request, using the Autocomplete REST API as an example.
33
33
34
34
```http
35
-
POST /indexes/myxboxgames/docs/autocomplete?search&api-version=2020-06-30
35
+
POST /indexes/myxboxgames/docs/autocomplete?search&api-version=2023-11-01
Copy file name to clipboardExpand all lines: articles/search/search-howto-incremental-index.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,9 @@ You can use the Azure portal, preview APIs, or beta Azure SDKs are required to e
45
45
46
46
### [**REST**](#tab/rest)
47
47
48
-
On new indexers, add the "cache" property in the indexer definition payload when calling Create or Update Indexer. You can use preview API versions 2021-04-30-preview and later. We recommend the latest preview for [Create or Update Indexer (2024-05-01-preview)](/rest/api/searchservice/indexers/create-or-update?view=rest-searchservice-2024-05-01-preview&preserve-view=true).
48
+
On new indexers, add the "cache" property in the indexer definition payload when calling Create or Update Indexer.
49
+
50
+
You can use preview API versions 2021-04-30-preview and later. We recommend the latest preview for [Create or Update Indexer (2024-05-01-preview)](/rest/api/searchservice/indexers/create-or-update?view=rest-searchservice-2024-05-01-preview&preserve-view=true).
49
51
50
52
```https
51
53
POST https://[service name].search.windows.net/indexers?api-version=2024-05-01-preview
Copy file name to clipboardExpand all lines: articles/search/search-howto-index-sharepoint-online.md
+23-24Lines changed: 23 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.service: cognitive-search
9
9
ms.custom:
10
10
- ignite-2023
11
11
ms.topic: how-to
12
-
ms.date: 06/14/2024
12
+
ms.date: 06/25/2024
13
13
---
14
14
15
15
# Index data from SharePoint document libraries
@@ -19,7 +19,7 @@ ms.date: 06/14/2024
19
19
>
20
20
> Be sure to visit the [known limitations](#limitations-and-considerations) section before you start.
21
21
>
22
-
>To use this preview, [fill out this form](https://aka.ms/azure-cognitive-search/indexer-preview). You won't be receiving any approval notification right after since any access request is automatically accepted after submission. After access is enabled, use a [preview REST API (2023-10-01-Preview or later)](search-api-preview.md) to index your content.
22
+
>To use this preview, [fill out this form](https://aka.ms/azure-cognitive-search/indexer-preview). You won't be receiving any approval notification right after since any access request is automatically accepted after submission. After access is enabled, use a [preview REST API](search-api-preview.md) to index your content.
23
23
24
24
This article explains how to configure a [search indexer](search-indexer-overview.md) to index documents stored in SharePoint document libraries for full text search in Azure AI Search. Configuration steps are first, followed by behaviors and scenarios
25
25
@@ -74,7 +74,7 @@ Here are the considerations when using this feature:
74
74
75
75
## Configure the SharePoint Online indexer
76
76
77
-
To set up the SharePoint Online indexer, use both the Azure portal and a preview REST API.
77
+
To set up the SharePoint Online indexer, use both the Azure portal and a preview REST API. You can use 2020-06-30-preview or later. We recommend the latest preview API.
78
78
79
79
This section provides the steps. You can also watch the following video.
80
80
@@ -173,8 +173,7 @@ The SharePoint Online indexer uses this Microsoft Entra application for authenti
173
173
174
174
### Step 4: Create data source
175
175
176
-
> [!IMPORTANT]
177
-
> Starting in this section, use the preview REST API for the remaining steps. We recommend the latest preview API, [2023-10-01-preview](/rest/api/searchservice/data-sources/create-or-update?view=rest-searchservice-2023-10-01-preview&tabs=HTTP&preserve-view=true). If you’re not familiar with the Azure AI Search REST API, we suggest taking a look at this [Quickstart](search-get-started-rest.md).
176
+
Starting in this section, use a preview REST API for the remaining steps. We recommend the latest preview API.
178
177
179
178
A data source specifies which data to index, credentials, and policies to efficiently identify changes in the data (new, modified, or deleted rows). A data source can be used by multiple indexers in the same search service.
180
179
@@ -185,10 +184,10 @@ For SharePoint indexing, the data source must have the following required proper
185
184
+**credentials** provide the SharePoint endpoint and the Microsoft Entra application (client) ID. An example SharePoint endpoint is `https://microsoft.sharepoint.com/teams/MySharePointSite`. You can get the endpoint by navigating to the home page of your SharePoint site and copying the URL from the browser.
186
185
+**container** specifies which document library to index. Properties [control which documents are indexed](#controlling-which-documents-are-indexed).
187
186
188
-
To create a data source, call [Create Data Source (preview)](/rest/api/searchservice/data-sources/create-or-update?view=rest-searchservice-2023-10-01-preview&tabs=HTTP&preserve-view=true).
187
+
To create a data source, call [Create Data Source (preview)](/rest/api/searchservice/data-sources/create?view=rest-searchservice-2024-05-01-preview&preserve-view=true).
189
188
190
189
```http
191
-
POST https://[service name].search.windows.net/datasources?api-version=2023-10-01-Preview
190
+
POST https://[service name].search.windows.net/datasources?api-version=2024-05-01-preview
192
191
Content-Type: application/json
193
192
api-key: [admin key]
194
193
@@ -219,10 +218,10 @@ The format of the connection string changes based on whether the indexer is usin
219
218
220
219
The index specifies the fields in a document, attributes, and other constructs that shape the search experience.
221
220
222
-
To create an index, call [Create Index (preview)](/rest/api/searchservice/indexes/create-or-update?view=rest-searchservice-2023-10-01-preview&tabs=HTTP&preserve-view=true):
221
+
To create an index, call [Create Index (preview)](/rest/api/searchservice/indexes/create?view=rest-searchservice-2024-05-01-preview&preserve-view=true):
223
222
224
223
```http
225
-
POST https://[service name].search.windows.net/indexes?api-version=2023-10-01-Preview
224
+
POST https://[service name].search.windows.net/indexes?api-version=2024-05-01-preview
226
225
Content-Type: application/json
227
226
api-key: [admin key]
228
227
@@ -252,10 +251,10 @@ If you are using delegated permissions, during this step, you’re asked to sign
252
251
253
252
There are a few steps to creating the indexer:
254
253
255
-
1. Send a [Create Indexer (preview)](/rest/api/searchservice/indexers/create-or-update?view=rest-searchservice-2023-10-01-preview&tabs=HTTP&preserve-view=true) request:
254
+
1. Send a [Create Indexer (preview)](/rest/api/searchservice/indexers/create-or-update?view=rest-searchservice-2024-05-01-preview&tabs=HTTP&preserve-view=true) request:
256
255
257
256
```http
258
-
POST https://[service name].search.windows.net/indexers?api-version=2023-10-01-Preview
257
+
POST https://[service name].search.windows.net/indexers?api-version=2024-05-01-preview
259
258
Content-Type: application/json
260
259
api-key: [admin key]
261
260
@@ -289,17 +288,17 @@ There are a few steps to creating the indexer:
289
288
290
289
If you're using application permissions, it's necessary to wait until the initial run is complete before starting to query your index. The following instructions provided in this step pertain specifically to delegated permissions, and are not applicable to application permissions.
291
290
292
-
1. When you create the indexer for the first time, the [Create Indexer (preview)](/rest/api/searchservice/indexers/create-or-update?view=rest-searchservice-2023-10-01-preview&tabs=HTTP&preserve-view=true) request waits until you complete the next step. You must call [Get Indexer Status](/rest/api/searchservice/indexers/get-status?view=rest-searchservice-2023-10-01-preview&tabs=HTTP&preserve-view=true) to get the link and enter your new device code.
291
+
1. When you create the indexer for the first time, the [Create Indexer (preview)](/rest/api/searchservice/indexers/create-or-update?view=rest-searchservice-2024-05-01-preview&tabs=HTTP&preserve-view=true) request waits until you complete the next step. You must call [Get Indexer Status](/rest/api/searchservice/indexers/get-status?view=rest-searchservice-2024-05-01-preview&tabs=HTTP&preserve-view=true) to get the link and enter your new device code.
293
292
294
293
```http
295
-
GET https://[service name].search.windows.net/indexers/sharepoint-indexer/status?api-version=2023-10-01-Preview
294
+
GET https://[service name].search.windows.net/indexers/sharepoint-indexer/status?api-version=2024-05-01-preview
296
295
Content-Type: application/json
297
296
api-key: [admin key]
298
297
```
299
298
300
-
If you don’t run the [Get Indexer Status](/rest/api/searchservice/indexers/get-status?view=rest-searchservice-2023-10-01-preview&tabs=HTTP&preserve-view=true) within 10 minutes, the code expires and you’ll need to recreate the [data source](#create-data-source).
299
+
If you don’t run the [Get Indexer Status](/rest/api/searchservice/indexers/get-status?view=rest-searchservice-2024-05-01-preview&tabs=HTTP&preserve-view=true) within 10 minutes, the code expires and you’ll need to recreate the [data source](#create-data-source).
301
300
302
-
1. Copy the device login code from the [Get Indexer Status](/rest/api/searchservice/indexers/get-status?view=rest-searchservice-2023-10-01-preview&tabs=HTTP&preserve-view=true) response. The device login can be found in the "errorMessage".
301
+
1. Copy the device login code from the [Get Indexer Status](/rest/api/searchservice/indexers/get-status?view=rest-searchservice-2024-05-01-preview&tabs=HTTP&preserve-view=true) response. The device login can be found in the "errorMessage".
303
302
304
303
```http
305
304
{
@@ -322,18 +321,18 @@ There are a few steps to creating the indexer:
322
321
323
322
:::image type="content" source="media/search-howto-index-sharepoint-online/aad-app-approve-api-permissions.png" alt-text="Screenshot showing how to approve API permissions.":::
324
323
325
-
1. The [Create Indexer (preview)](/rest/api/searchservice/indexers/create-or-update?view=rest-searchservice-2023-10-01-preview&tabs=HTTP&preserve-view=true) initial request completes if all the permissions provided above are correct and within the 10 minute timeframe.
324
+
1. The [Create Indexer (preview)](/rest/api/searchservice/indexers/create-or-update?view=rest-searchservice-2024-05-01-preview&tabs=HTTP&preserve-view=true) initial request completes if all the permissions provided above are correct and within the 10 minute timeframe.
326
325
327
326
> [!NOTE]
328
327
> If the Microsoft Entra application requires admin approval and was not approved before logging in, you may see the following screen. [Admin approval](../active-directory/manage-apps/grant-admin-consent.md) is required to continue.
After the indexer has been created, you can call [Get Indexer Status](/rest/api/searchservice/indexers/get-status?view=rest-searchservice-2023-10-01-preview&tabs=HTTP&preserve-view=true):
332
+
After the indexer has been created, you can call [Get Indexer Status](/rest/api/searchservice/indexers/get-status?view=rest-searchservice-2024-05-01-preview&tabs=HTTP&preserve-view=true):
334
333
335
334
```http
336
-
GET https://[service name].search.windows.net/indexers/sharepoint-indexer/status?api-version=2023-10-01-Preview
335
+
GET https://[service name].search.windows.net/indexers/sharepoint-indexer/status?api-version=2024-05-01-preview
337
336
Content-Type: application/json
338
337
api-key: [admin key]
339
338
```
@@ -346,18 +345,18 @@ However, if you modify the data source object while the device code is expired,
346
345
347
346
Here are the steps for updating a data source, assuming an expired device code:
348
347
349
-
1. Call [Run Indexer (preview)](/rest/api/searchservice/indexers/run?view=rest-searchservice-2023-10-01-preview&tabs=HTTP&preserve-view=true) to manually start [indexer execution](search-howto-run-reset-indexers.md).
348
+
1. Call [Run Indexer (preview)](/rest/api/searchservice/indexers/run?view=rest-searchservice-2024-05-01-preview&tabs=HTTP&preserve-view=true) to manually start [indexer execution](search-howto-run-reset-indexers.md).
350
349
351
350
```http
352
-
POST https://[service name].search.windows.net/indexers/sharepoint-indexer/run?api-version=2023-10-01-Preview
351
+
POST https://[service name].search.windows.net/indexers/sharepoint-indexer/run?api-version=2024-05-01-preview
353
352
Content-Type: application/json
354
353
api-key: [admin key]
355
354
```
356
355
357
-
1. Check the [indexer status](/rest/api/searchservice/indexers/get-status?view=rest-searchservice-2023-10-01-preview&tabs=HTTP&preserve-view=true).
356
+
1. Check the [indexer status](/rest/api/searchservice/indexers/get-status?view=rest-searchservice-2024-05-01-preview&tabs=HTTP&preserve-view=true).
358
357
359
358
```http
360
-
GET https://[service name].search.windows.net/indexers/sharepoint-indexer/status?api-version=2023-10-01-Preview
359
+
GET https://[service name].search.windows.net/indexers/sharepoint-indexer/status?api-version=2024-05-01-preview
361
360
Content-Type: application/json
362
361
api-key: [admin key]
363
362
```
@@ -400,7 +399,7 @@ You can control which files are indexed by setting inclusion and exclusion crite
400
399
Include specific file extensions by setting `"indexedFileNameExtensions"` to a comma-separated list of file extensions (with a leading dot). Exclude specific file extensions by setting `"excludedFileNameExtensions"` to the extensions that should be skipped. If the same extension is in both lists, it's excluded from indexing.
401
400
402
401
```http
403
-
PUT /indexers/[indexer name]?api-version=2020-06-30
402
+
PUT /indexers/[indexer name]?api-version=2024-05-01-preview
404
403
{
405
404
"parameters" : {
406
405
"configuration" : {
@@ -451,7 +450,7 @@ The "query" parameter of the data source is made up of keyword/value pairs. The
451
450
By default, the SharePoint Online indexer stops as soon as it encounters a document with an unsupported content type (for example, an image). You can use the `excludedFileNameExtensions` parameter to skip certain content types. However, you might need to index documents without knowing all the possible content types in advance. To continue indexing when an unsupported content type is encountered, set the `failOnUnsupportedContentType` configuration parameter to false:
452
451
453
452
```http
454
-
PUT https://[service name].search.windows.net/indexers/[indexer name]?api-version=2023-10-01-Preview
453
+
PUT https://[service name].search.windows.net/indexers/[indexer name]?api-version=2024-05-01-preview
Copy file name to clipboardExpand all lines: articles/search/search-indexer-howto-access-private.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ While both scenarios have a dependency on Azure Private Link, they're independen
60
60
61
61
When evaluating shared private links for your scenario, remember these constraints.
62
62
63
-
+ Several of the resource types used in a shared private link are in preview. If you're connecting to a preview resource (Azure Database for MySQL, Azure Functions, or Azure SQL Managed Instance), use a preview version of the Management REST API to create the shared private link. These versions include `2020-08-01-preview`, `2021-04-01-preview`, `2024-03-01-preview`, and `2024-06-01-preview`. We recommend the latest preview version.
63
+
+ Several of the resource types used in a shared private link are in preview. If you're connecting to a preview resource (Azure Database for MySQL, Azure Functions, or Azure SQL Managed Instance), use a preview version of the Management REST API to create the shared private link. These versions include `2020-08-01-preview`, `2021-04-01-preview`, `2024-03-01-preview`, and `2024-06-01-preview`. We recommend the latest preview API.
64
64
65
65
+ Indexer execution must use the private execution environment that's specific to your search service. Private endpoint connections aren't supported from the multitenant environment. The configuration setting for this requirement is covered in this article.
0 commit comments