Skip to content

Commit e882d33

Browse files
committed
API references and links
1 parent beaa3be commit e882d33

10 files changed

+45
-44
lines changed

articles/search/cognitive-search-attach-cognitive-services.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ If you leave the property unspecified, your search service attempts to use the f
5252
1. Create or update a skillset, specifying `cognitiveServices` section in the body of the [skillset request](/rest/api/searchservice/create-skillset):
5353

5454
```http
55-
PUT https://[servicename].search.windows.net/skillsets/[skillset name]?api-version=2020-06-30
55+
PUT https://[servicename].search.windows.net/skillsets/[skillset name]?api-version=2023-11-01
5656
api-key: [admin key]
5757
Content-Type: application/json
5858
{
@@ -140,7 +140,7 @@ Enrichments are billable operations. If you no longer need to call Azure AI serv
140140
1. Remove the key in the body of the definition, and then send the request:
141141

142142
```http
143-
PUT https://[servicename].search.windows.net/skillsets/[skillset name]?api-version=2020-06-30
143+
PUT https://[servicename].search.windows.net/skillsets/[skillset name]?api-version=2023-11-01
144144
api-key: [admin key]
145145
Content-Type: application/json
146146
{

articles/search/index-add-scoring-profiles.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ The following definition shows a simple profile named "geo". This example boosts
5757
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.
5858

5959
```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
6161
```
6262

6363
Notice the syntax differences when using POST. In POST, "scoringParameters" is plural and it's an array.
6464

6565
```http
66-
POST /indexes/hotels/docs&api-version=2020-06-30
66+
POST /indexes/hotels/docs&api-version=2023-11-01
6767
{
6868
"search": "inn",
6969
"scoringProfile": "geo",

articles/search/index-ranking-similarity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ BM25 ranking provides two parameters for tuning the relevance score calculation.
4242
1. Use a [Create or Update Index](/rest/api/searchservice/create-index) request to set BM25 parameters:
4343

4444
```http
45-
PUT [service-name].search.windows.net/indexes/[index-name]?api-version=2020-06-30&allowIndexDowntime=true
45+
PUT [service-name].search.windows.net/indexes/[index-name]?api-version=2023-11-01&allowIndexDowntime=true
4646
{
4747
"similarity": {
4848
"@odata.type": "#Microsoft.Azure.Search.BM25Similarity",
@@ -83,7 +83,7 @@ The following links describe the Similarity property in the Azure SDKs.
8383
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:
8484
8585
```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
8787
{
8888
"name": "indexName",
8989
"fields": [

articles/search/index-similarity-and-scoring.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ By default, the score of a document is calculated based on statistical propertie
100100
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)).
101101

102102
```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
104104
{
105105
"search": "<query string>",
106106
"scoringStatistics": "global"
@@ -110,7 +110,7 @@ POST https://[service name].search.windows.net/indexes/hotels/docs/search?api-ve
110110
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.
111111

112112
```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
114114
{
115115
"search": "<query string>",
116116
"sessionId": "<string>"

articles/search/search-add-autocomplete-suggestions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The remainder of this article is focused on queries and client code. It uses Jav
3232
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.
3333

3434
```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
3636
{
3737
"search": "minecraf",
3838
"suggesterName": "sg"

articles/search/search-howto-incremental-index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ You can use the Azure portal, preview APIs, or beta Azure SDKs are required to e
4545

4646
### [**REST**](#tab/rest)
4747

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).
4951

5052
```https
5153
POST https://[service name].search.windows.net/indexers?api-version=2024-05-01-preview

articles/search/search-howto-index-sharepoint-online.md

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.service: cognitive-search
99
ms.custom:
1010
- ignite-2023
1111
ms.topic: how-to
12-
ms.date: 06/14/2024
12+
ms.date: 06/25/2024
1313
---
1414

1515
# Index data from SharePoint document libraries
@@ -19,7 +19,7 @@ ms.date: 06/14/2024
1919
>
2020
> Be sure to visit the [known limitations](#limitations-and-considerations) section before you start.
2121
>
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.
2323
2424
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
2525

@@ -74,7 +74,7 @@ Here are the considerations when using this feature:
7474

7575
## Configure the SharePoint Online indexer
7676

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.
7878

7979
This section provides the steps. You can also watch the following video.
8080

@@ -173,8 +173,7 @@ The SharePoint Online indexer uses this Microsoft Entra application for authenti
173173

174174
### Step 4: Create data source
175175

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.
178177

179178
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.
180179

@@ -185,10 +184,10 @@ For SharePoint indexing, the data source must have the following required proper
185184
+ **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.
186185
+ **container** specifies which document library to index. Properties [control which documents are indexed](#controlling-which-documents-are-indexed).
187186

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).
189188

190189
```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
192191
Content-Type: application/json
193192
api-key: [admin key]
194193
@@ -219,10 +218,10 @@ The format of the connection string changes based on whether the indexer is usin
219218

220219
The index specifies the fields in a document, attributes, and other constructs that shape the search experience.
221220

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):
223222

224223
```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
226225
Content-Type: application/json
227226
api-key: [admin key]
228227
@@ -252,10 +251,10 @@ If you are using delegated permissions, during this step, you’re asked to sign
252251

253252
There are a few steps to creating the indexer:
254253

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:
256255

257256
```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
259258
Content-Type: application/json
260259
api-key: [admin key]
261260
@@ -289,17 +288,17 @@ There are a few steps to creating the indexer:
289288
290289
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.
291290
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.
293292
294293
```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
296295
Content-Type: application/json
297296
api-key: [admin key]
298297
```
299298
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).
301300
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".
303302
304303
```http
305304
{
@@ -322,18 +321,18 @@ There are a few steps to creating the indexer:
322321
323322
:::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.":::
324323
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.
326325
327326
> [!NOTE]
328327
> 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.
329328
:::image type="content" source="media/search-howto-index-sharepoint-online/no-admin-approval-error.png" alt-text="Screenshot showing admin approval required.":::
330329
331330
### Step 7: Check the indexer status
332331
333-
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):
334333
335334
```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
337336
Content-Type: application/json
338337
api-key: [admin key]
339338
```
@@ -346,18 +345,18 @@ However, if you modify the data source object while the device code is expired,
346345

347346
Here are the steps for updating a data source, assuming an expired device code:
348347

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).
350349

351350
```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
353352
Content-Type: application/json
354353
api-key: [admin key]
355354
```
356355
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).
358357
359358
```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
361360
Content-Type: application/json
362361
api-key: [admin key]
363362
```
@@ -400,7 +399,7 @@ You can control which files are indexed by setting inclusion and exclusion crite
400399
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.
401400
402401
```http
403-
PUT /indexers/[indexer name]?api-version=2020-06-30
402+
PUT /indexers/[indexer name]?api-version=2024-05-01-preview
404403
{
405404
"parameters" : {
406405
"configuration" : {
@@ -451,7 +450,7 @@ The "query" parameter of the data source is made up of keyword/value pairs. The
451450
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:
452451

453452
```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
455454
Content-Type: application/json
456455
api-key: [admin key]
457456

articles/search/search-indexer-howto-access-private.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ While both scenarios have a dependency on Azure Private Link, they're independen
6060

6161
When evaluating shared private links for your scenario, remember these constraints.
6262

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.
6464

6565
+ 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.
6666

0 commit comments

Comments
 (0)