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/search-howto-connecting-azure-sql-database-to-azure-search-using-indexers.md
+22-36Lines changed: 22 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ In a [search index](search-what-is-an-index.md), add fields to accept values fro
105
105
106
106
Indexer configuration specifies the inputs, parameters, and properties controlling run time behaviors.
107
107
108
-
1. [Create or update an indexer](/rest/api/searchservice/create-indexer) by giving it a name and referencing the data source and target index.
108
+
1. [Create or update an indexer](/rest/api/searchservice/create-indexer) by giving it a name and referencing the data source and target index:
109
109
110
110
```http
111
111
POST https://[service name].search.windows.net/indexers?api-version=2020-06-30
@@ -118,43 +118,48 @@ Indexer configuration specifies the inputs, parameters, and properties controlli
118
118
"disabled": null,
119
119
"schedule": null,
120
120
"parameters": {
121
-
"batchSize": null,
122
-
"maxFailedItems": 0,
123
-
"maxFailedItemsPerBatch": 0,
124
-
"base64EncodeKeys": false,
125
-
"configuration": {}
121
+
"batchSize": null,
122
+
"maxFailedItems": 0,
123
+
"maxFailedItemsPerBatch": 0,
124
+
"base64EncodeKeys": false,
125
+
"configuration": {
126
+
"queryTimeout": "00:05:00",
127
+
"disableOrderByHighWaterMarkColumn": false
128
+
}
126
129
},
127
130
"fieldMappings": [],
128
131
"encryptionKey": null
129
132
}
130
133
```
131
134
135
+
1. Under parameter configuration, you can set a timeout for SQL query execution. In the example above, the timeout is 5 minutes. The second configuration setting is "disableOrderByHighWaterMarkColumn". It causes the SQL query used by the [high water mark policy](#HighWaterMarkPolicy) to omit the ORDER BY clause.
136
+
132
137
1. [Specify field mappings](search-indexer-field-mappings.md) if there are differences in field name or type, or if you need multiple versions of a source field in the search index.
133
138
134
139
1. See [Create an indexer](search-howto-create-indexers.md) for more information about other properties.
135
140
136
-
An indexer runs automatically when it's created. You can prevent this by setting "disabled" to true. To control indexer execution, [run an indexer on demand](search-howto-run-reset-indexers.md) or [put it on a schedule](search-howto-schedule-indexers.md).
141
+
An indexer runs automatically when it's created. You can prevent this by setting "disabled" to true. To control indexer execution, [run an indexer on demand](search-howto-run-reset-indexers.md) or [put it on a schedule](search-howto-schedule-indexers.md).
137
142
138
143
## Check indexer status
139
144
140
-
To monitor the indexer status and execution history (number of items indexed, failures, etc.), use an **indexerstatus** request:
145
+
To monitor the indexer status and execution history, send a [Get Indexer Status](/rest/api/searchservice/get-indexer-status) request:
141
146
142
147
```http
143
-
GET https://myservice.search.windows.net/indexers/myindexer/status?api-version=2020-06-30
144
-
api-key: admin-key
148
+
GET https://myservice.search.windows.net/indexers/myindexer/status?api-version=2020-06-30
149
+
Content-Type: application/json
150
+
api-key: [admin key]
145
151
```
146
152
147
-
The response should look similar to the following:
153
+
The response includes status and the number of items processed. It should look similar to the following example:
@@ -166,8 +171,8 @@ The response should look similar to the following:
166
171
{
167
172
"status":"success",
168
173
"errorMessage":null,
169
-
"startTime":"2015-02-21T00:23:24.957Z",
170
-
"endTime":"2015-02-21T00:36:47.752Z",
174
+
"startTime":"2022-02-21T00:23:24.957Z",
175
+
"endTime":"2022-02-21T00:36:47.752Z",
171
176
"errors":[],
172
177
"itemsProcessed":1599501,
173
178
"itemsFailed":0,
@@ -179,8 +184,7 @@ The response should look similar to the following:
179
184
}
180
185
```
181
186
182
-
Execution history contains up to 50 of the most recently completed executions, which are sorted in the reverse chronological order (so that the latest execution comes first in the response).
183
-
Additional information about the response can be found in [Get Indexer Status](/rest/api/searchservice/get-indexer-status)
187
+
Execution history contains up to 50 of the most recently completed executions, which are sorted in the reverse chronological order so that the latest execution comes first.
184
188
185
189
<aname="CaptureChangedRows"></a>
186
190
@@ -336,24 +340,6 @@ The **softDeleteMarkerValue** must be a string in the JSON representation of you
336
340
337
341
If you are setting up a soft delete policy from the Azure portal, don't add quotes around the soft delete marker value. The field contents are already understood as a string and will be translated automatically into a JSON string for you. In the examples above, simply type `1`, `True` or `true` into the portal's field.
338
342
339
-
## Configuration Settings
340
-
SQL indexer exposes several configuration settings:
341
-
342
-
| Setting | Data type | Purpose | Default value |
343
-
| --- | --- | --- | --- |
344
-
| queryTimeout |string |Sets the timeout for SQL query execution |5 minutes ("00:05:00") |
345
-
| disableOrderByHighWaterMarkColumn |bool |Causes the SQL query used by the high water mark policy to omit the ORDER BY clause. See [High Water Mark policy](#HighWaterMarkPolicy)|false |
346
-
347
-
These settings are used in the `parameters.configuration` object in the indexer definition. For example, to set the query timeout to 10 minutes, create or update the indexer with the following configuration:
Copy file name to clipboardExpand all lines: articles/search/search-howto-index-cosmosdb.md
+47-1Lines changed: 47 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,7 +231,53 @@ Indexer configuration specifies the inputs, parameters, and properties controlli
231
231
232
232
1. See [Create an indexer](search-howto-create-indexers.md) for more information about other properties.
233
233
234
-
An indexer runs automatically when it's created. You can prevent this by setting "disabled" to true. To control indexer execution, [run an indexer on demand](search-howto-run-reset-indexers.md) or [put it on a schedule](search-howto-schedule-indexers.md).
234
+
An indexer runs automatically when it's created. You can prevent this by setting "disabled" to true. To control indexer execution, [run an indexer on demand](search-howto-run-reset-indexers.md) or [put it on a schedule](search-howto-schedule-indexers.md).
235
+
236
+
## Check indexer status
237
+
238
+
To monitor the indexer status and execution history, send a [Get Indexer Status](/rest/api/searchservice/get-indexer-status) request:
239
+
240
+
```http
241
+
GET https://myservice.search.windows.net/indexers/myindexer/status?api-version=2020-06-30
242
+
Content-Type: application/json
243
+
api-key: [admin key]
244
+
```
245
+
246
+
The response includes status and the number of items processed. It should look similar to the following example:
247
+
248
+
```json
249
+
{
250
+
"status":"running",
251
+
"lastResult": {
252
+
"status":"success",
253
+
"errorMessage":null,
254
+
"startTime":"2022-02-21T00:23:24.957Z",
255
+
"endTime":"2022-02-21T00:36:47.752Z",
256
+
"errors":[],
257
+
"itemsProcessed":1599501,
258
+
"itemsFailed":0,
259
+
"initialTrackingState":null,
260
+
"finalTrackingState":null
261
+
},
262
+
"executionHistory":
263
+
[
264
+
{
265
+
"status":"success",
266
+
"errorMessage":null,
267
+
"startTime":"2022-02-21T00:23:24.957Z",
268
+
"endTime":"2022-02-21T00:36:47.752Z",
269
+
"errors":[],
270
+
"itemsProcessed":1599501,
271
+
"itemsFailed":0,
272
+
"initialTrackingState":null,
273
+
"finalTrackingState":null
274
+
},
275
+
... earlier history items
276
+
]
277
+
}
278
+
```
279
+
280
+
Execution history contains up to 50 of the most recently completed executions, which are sorted in the reverse chronological order so that the latest execution comes first.
0 commit comments