Skip to content

Commit 858b83a

Browse files
authored
[8.1] Replace hard-coded doc URLs with @doc_id (#1506)
1 parent e406e98 commit 858b83a

File tree

13 files changed

+68
-37
lines changed

13 files changed

+68
-37
lines changed

output/schema/schema.json

Lines changed: 33 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_doc_ids/table.csv

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,3 +375,18 @@ run-as-privilege,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/run
375375
sql-rest-filtering,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/sql-rest-filtering.html
376376
sql-rest-format,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/sql-rest-format.html
377377
cron-expressions,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/api-conventions.html#api-cron-expressions
378+
runtime-search-request,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/runtime-search-request.html
379+
mapping-metadata,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/mapping-fields.html
380+
realtime,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/docs-get.html#realtime
381+
routing,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/docs-get.html#get-routing
382+
ccs-network-delays,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/modules-cross-cluster-search.html#ccs-network-delays
383+
k-precision,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/search-rank-eval.html#k-precision
384+
k-recall,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/search-rank-eval.html#k-recall
385+
mean-reciprocal,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/search-rank-eval.html#_mean_reciprocal_rank
386+
dcg,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/search-rank-eval.html#_discounted_cumulative_gain_dcg
387+
expected-reciprocal,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/search-rank-eval.html#_expected_reciprocal_rank_err
388+
scroll-search-results,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/paginate-search-results.html#scroll-search-results
389+
document-input-parameters,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/query-dsl-mlt-query.html#_document_input_parameters
390+
data-stream-path-param,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/indices-create-data-stream.html#indices-create-data-stream-api-path-params
391+
byte-units,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/api-conventions.html#byte-units
392+
node-roles,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/modules-node.html#node-roles

specification/_global/field_caps/FieldCapabilitiesRequest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface Request extends RequestBase {
3737
}
3838
query_parameters: {
3939
/**
40-
* If false, the request returns an error if any wildcard expression, [index alias](https://www.elastic.co/guide/en/elasticsearch/reference/current/aliases.html),
40+
* If false, the request returns an error if any wildcard expression, index alias,
4141
* or `_all` value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request
4242
* targeting `foo*,bar*` returns an error if an index starts with foo but no index starts with bar.
4343
* @server_default true
@@ -69,10 +69,10 @@ export interface Request extends RequestBase {
6969
*/
7070
index_filter?: QueryContainer
7171
/**
72-
* Defines ad-hoc [runtime fields](https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime-search-request.html) in the request similar
73-
* to the way it is done in [search requests](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html#search-api-body-runtime).
72+
* Defines ad-hoc runtime fields in the request similar to the way it is done in search requests.
7473
* These fields exist only as part of the query and take precedence over fields defined with the same name in the index mappings.
7574
* @since 7.12.0
75+
* @doc_id runtime-search-request
7676
*/
7777
runtime_mappings?: RuntimeFields
7878
}

specification/_global/field_caps/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ export class FieldCapability {
4747
searchable: boolean
4848
type: string
4949
/**
50-
* Whether this field is registered as a [metadata field](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-fields.html).
50+
* Whether this field is registered as a metadata field.
51+
* @doc_id mapping-metadata
5152
*/
5253
metadata_field?: boolean
5354
/**

specification/_global/get/GetRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export interface Request extends RequestBase {
4848
/**
4949
* Boolean) If true, the request is real-time as opposed to near-real-time.
5050
* @server_default true
51-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html#realtime
51+
* @doc_id realtime
5252
*/
5353
realtime?: boolean
5454
/**
@@ -58,7 +58,7 @@ export interface Request extends RequestBase {
5858
refresh?: boolean
5959
/**
6060
* Target the specified primary shard.
61-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html#get-routing
61+
* @doc_id routing
6262
*/
6363
routing?: Routing
6464
/**

specification/_global/get_source/SourceRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export interface Request {
4848
/**
4949
* Boolean) If true, the request is real-time as opposed to near-real-time.
5050
* @server_default true
51-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html#realtime
51+
* @doc_id realtiime
5252
*/
5353
realtime?: boolean
5454
/**
@@ -58,7 +58,7 @@ export interface Request {
5858
refresh?: boolean
5959
/**
6060
* Target the specified primary shard.
61-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html#get-routing
61+
* @doc_id routing
6262
*/
6363
routing?: Routing
6464
/**

specification/_global/mget/MultiGetRequest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface Request extends RequestBase {
4343
/**
4444
* If `true`, the request is real-time as opposed to near-real-time.
4545
* @server_default true
46-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html#realtime
46+
* @doc_id realtime
4747
*/
4848
realtime?: boolean
4949
/**
@@ -62,14 +62,14 @@ export interface Request extends RequestBase {
6262
/**
6363
* A comma-separated list of source fields to exclude from the response.
6464
* You can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter.
65-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-source-field.html
65+
* @doc_id mapping-source-field
6666
*/
6767
_source_excludes?: Fields
6868
/**
6969
* A comma-separated list of source fields to include in the response.
7070
* If this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the `_source_excludes` query parameter.
7171
* If the `_source` parameter is `false`, this parameter is ignored.
72-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-source-field.html
72+
* @doc_id mapping-source-field
7373
*/
7474
_source_includes?: Fields
7575
/**

specification/_global/msearch/MultiSearchRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface Request extends RequestBase {
4343
/**
4444
* If true, network roundtrips between the coordinating node and remote clusters are minimized for cross-cluster search requests.
4545
* @server_default true
46-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-cross-cluster-search.html#ccs-network-delays
46+
* @doc_id ccs-network-delays
4747
*/
4848
ccs_minimize_roundtrips?: boolean
4949
/**

specification/_global/msearch_template/MultiSearchTemplateRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { long } from '@_types/Numeric'
2323
import { RequestItem } from './types'
2424

2525
/**
26-
* Runs multiple [templated searches](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#run-multiple-templated-searches) with a single request.
26+
* Runs multiple templated searches with a single request.
2727
* @rest_spec_name msearch_template
2828
* @since 5.0.0
2929
* @stability stable

specification/_global/scroll/ScrollRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface Request extends RequestBase {
3434
query_parameters: {
3535
/**
3636
* Period to retain the search context for scrolling.
37-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#scroll-search-results
37+
* @doc_id scroll-search-results
3838
* @server_default 1d
3939
*/
4040
scroll?: Time
@@ -49,7 +49,7 @@ export interface Request extends RequestBase {
4949
body: {
5050
/**
5151
* Period to retain the search context for scrolling.
52-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#scroll-search-results
52+
* @doc_id scroll-search-results
5353
* @server_default 1d
5454
*/
5555
scroll?: Time

specification/_global/search/SearchRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export interface Request extends RequestBase {
165165
*/
166166
size?: integer
167167
slice?: SlicedScroll
168-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/sort-search-results.html */
168+
/** @doc_id sort-search-results */
169169
sort?: Sort
170170
/**
171171
* Indicates which source fields are returned for matching documents. These

specification/_global/terms_enum/TermsEnumRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface Request extends RequestBase {
5353
case_insensitive?: boolean
5454
/**
5555
* Allows to filter an index shard if the provided query rewrites to match_none.
56-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
56+
* @doc_id query-dsl
5757
*/
5858
index_filter?: QueryContainer
5959
/**

specification/_types/Node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class NodeShard {
6262
}
6363

6464
/**
65-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#node-roles
65+
* @doc_id node-roles
6666
*/
6767
export enum NodeRole {
6868
master = 0,
@@ -82,6 +82,6 @@ export enum NodeRole {
8282
}
8383

8484
/**
85-
* * @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#node-roles
85+
* * @doc_id node-roles
8686
*/
8787
export type NodeRoles = NodeRole[]

0 commit comments

Comments
 (0)