Skip to content

Commit 8ca68a4

Browse files
[docs] Clean up cross-repo links (#2640)
* clean up cross-repo links * add docs-content to cross_links
1 parent 3e5e568 commit 8ca68a4

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

docs/docset.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ project: 'Node.js client'
22
exclude:
33
- examples/proxy/README.md
44
cross_links:
5+
- docs-content
56
- elasticsearch
67
toc:
78
- toc: reference

docs/reference/api-reference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ Get script contexts.
764764

765765
Get a list of supported script contexts and their methods.
766766

767-
[Endpoint documentation](elasticsearch://docs/reference/scripting-languages/painless/painless-contexts.md)
767+
[Endpoint documentation](elasticsearch://reference/scripting-languages/painless/painless-contexts.md)
768768

769769
```ts
770770
client.getScriptContext()
@@ -1534,7 +1534,7 @@ The API uses several *contexts*, which control how scripts are run, what variabl
15341534

15351535
Each context requires a script, but additional parameters depend on the context you’re using for that script.
15361536

1537-
[Endpoint documentation](elasticsearch://docs/reference/scripting-languages/painless/painless-api-examples.md)
1537+
[Endpoint documentation](elasticsearch://reference/scripting-languages/painless/painless-api-examples.md)
15381538

15391539
```ts
15401540
client.scriptsPainlessExecute({ ... })
@@ -5261,7 +5261,7 @@ client.ilm.stop({ ... })
52615261

52625262
Add an index block. Limits the operations allowed on an index by blocking specific operation types.
52635263

5264-
[Index block settings](elasticsearch://docs/reference/elasticsearch/index-settings/index-block.md)
5264+
[Index block settings](elasticsearch://reference/elasticsearch/index-settings/index-block.md)
52655265

52665266
```ts
52675267
client.indices.addBlock({ index, block })
@@ -7375,7 +7375,7 @@ client.ingest.deletePipeline({ id })
73757375

73767376
Get GeoIP statistics. Get download statistics for GeoIP2 databases that are used with the GeoIP processor.
73777377

7378-
[Endpoint documentation](elasticsearch://docs/reference/ingestion-tools/enrich-processor/geoip-processor.md)
7378+
[Endpoint documentation](elasticsearch://reference/ingestion-tools/enrich-processor/geoip-processor.md)
73797379

73807380
```ts
73817381
client.ingest.geoIpStats()
@@ -7446,7 +7446,7 @@ client.ingest.getPipeline({ ... })
74467446

74477447
Run a grok processor. Extract structured fields out of a single text field within a document. You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. A grok pattern is like a regular expression that supports aliased expressions that can be reused.
74487448

7449-
[Endpoint documentation](elasticsearch://docs/reference/ingestion-tools/enrich-processor/grok-processor.md)
7449+
[Endpoint documentation](elasticsearch://reference/ingestion-tools/enrich-processor/grok-processor.md)
74507450

74517451
```ts
74527452
client.ingest.processorGrok()

docs/reference/connecting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Running {{es}} without security enabled is not recommended.
133133
::::
134134

135135

136-
If your cluster is configured with [security explicitly disabled](elasticsearch://docs/reference/elasticsearch/configuration-reference/security-settings.md) then you can connect via HTTP:
136+
If your cluster is configured with [security explicitly disabled](elasticsearch://reference/elasticsearch/configuration-reference/security-settings.md) then you can connect via HTTP:
137137

138138
```js
139139
const { Client } = require('@elastic/elasticsearch')
@@ -332,7 +332,7 @@ The supported request specific options are:
332332
| Option | Description |
333333
| --- | ----------- |
334334
| `ignore` | `number[]` -  HTTP status codes which should not be considered errors for this request.<br>*Default:* `null` |
335-
| `requestTimeout` | `number` or `string` - Max request timeout for the request in milliseconds. This overrides the client default, which is to not time out at all. See [Elasticsearch best practices for HTML clients](elasticsearch://docs/reference/elasticsearch/configuration-reference/networking-settings.md#_http_client_configuration) for more info.<br>_Default:* No timeout |
335+
| `requestTimeout` | `number` or `string` - Max request timeout for the request in milliseconds. This overrides the client default, which is to not time out at all. See [Elasticsearch best practices for HTML clients](elasticsearch://reference/elasticsearch/configuration-reference/networking-settings.md#_http_client_configuration) for more info.<br>_Default:* No timeout |
336336
| `retryOnTimeout` | `boolean` - Retry requests that have timed out.*Default:* `false` |
337337
| `maxRetries` | `number` - Max number of retries for the request, it overrides the client default.<br>*Default:* `3` |
338338
| `compression` | `string` or `boolean` - Enables body compression for the request.<br>*Options:* `false`, `'gzip'`<br>*Default:* `false` |
@@ -341,7 +341,7 @@ The supported request specific options are:
341341
|`querystring` | `object` - Custom querystring for the request.<br>*Default:* `null` |
342342
| `id` | `any` - Custom request ID. *(overrides the top level request id generator)*<br>*Default:* `null` |
343343
| `context` | `any` - Custom object per request. *(you can use it to pass data to the clients events)*<br>*Default:* `null` |
344-
| `opaqueId` | `string` - Set the `X-Opaque-Id` HTTP header. See [X-Opaque-Id HTTP header](elasticsearch://docs/reference/elasticsearch/rest-apis/api-conventions.md#x-opaque-id) *Default:* `null` |
344+
| `opaqueId` | `string` - Set the `X-Opaque-Id` HTTP header. See [X-Opaque-Id HTTP header](elasticsearch://reference/elasticsearch/rest-apis/api-conventions.md#x-opaque-id) *Default:* `null` |
345345
| `maxResponseSize` | `number` - When configured, it verifies that the uncompressed response size is lower than the configured number, if it’s higher it will abort the request. It cannot be higher than buffer.constants.MAX_STRING_LENTGH<br>*Default:* `null` |
346346
| `maxCompressedResponseSize` | `number` - When configured, it verifies that the compressed response size is lower than the configured number, if it’s higher it will abort the request. It cannot be higher than buffer.constants.MAX_LENTGH<br>*Default:* `null` |
347347
| `signal` | `AbortSignal` - The AbortSignal instance to allow request abortion.<br>*Default:* `null` |

docs/reference/observability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ child.search({
312312

313313
## X-Opaque-Id support [_x_opaque_id_support]
314314

315-
To improve observability, the client offers an easy way to configure the `X-Opaque-Id` header. If you set the `X-Opaque-Id` in a specific request, this allows you to discover this identifier in the [deprecation logs](docs-content://deploy-manage/monitor/logging-configuration/update-elasticsearch-logging-levels.md#deprecation-logging), helps you with [identifying search slow log origin](elasticsearch://docs/reference/elasticsearch/index-settings/slow-log.md) as well as [identifying running tasks](https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks).
315+
To improve observability, the client offers an easy way to configure the `X-Opaque-Id` header. If you set the `X-Opaque-Id` in a specific request, this allows you to discover this identifier in the [deprecation logs](docs-content://deploy-manage/monitor/logging-configuration/update-elasticsearch-logging-levels.md#deprecation-logging), helps you with [identifying search slow log origin](elasticsearch://reference/elasticsearch/index-settings/slow-log.md) as well as [identifying running tasks](https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks).
316316

317317
The `X-Opaque-Id` should be configured in each request, for doing that you can use the `opaqueId` option, as you can see in the following example. The resulting header will be `{ 'X-Opaque-Id': 'my-search' }`.
318318

0 commit comments

Comments
 (0)