Skip to content

Commit 4e6b97a

Browse files
authored
[8.1] Replace more hard-coded doc URLs with @doc_id #1523 (#1524)
1 parent d52897e commit 4e6b97a

File tree

13 files changed

+60
-47
lines changed

13 files changed

+60
-47
lines changed

output/schema/schema.json

Lines changed: 41 additions & 29 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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ query-dsl,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/query-dsl.
340340
common-options,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/common-options.html
341341
indices-create-data-stream,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/indices-create-data-stream.html
342342
mapping-date-format,https://www.elastic.co/guide/en/elasticsearch/reference/7.x/mapping-date-format.html
343+
////
343344
query-dsl-minimum-should-match,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/query-dsl-minimum-should-match.html
344345
query-dsl-multi-term-rewrite,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/query-dsl-multi-term-rewrite.html
345346
modules-node,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/modules-node.html
@@ -389,4 +390,8 @@ scroll-search-results,https://www.elastic.co/guide/en/elasticsearch/reference/8.
389390
document-input-parameters,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/query-dsl-mlt-query.html#_document_input_parameters
390391
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
391392
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
393+
node-roles,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/modules-node.html#node-roles
394+
cluster-name,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/important-settings.html#cluster-name
395+
cluster-nodes,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/cluster.html#cluster-nodes
396+
sort-tiebreaker,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/eql.html#eql-search-specify-a-sort-tiebreaker
397+
eql-basic-syntax,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/eql-syntax.html#eql-basic-syntax

specification/_global/search/_types/suggester.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ export class SuggestFuzziness {
137137

138138
/**
139139
* Text or location that we want similar documents for or a lookup to a document's field for the text.
140-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-mlt-query.html#_document_input_parameters
141-
*
140+
* @doc_id document-input-parameters
142141
* @codegen_names category, location
143142
*/
144143
export type Context = string | GeoLocation

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export interface Request extends RequestBase {
176176
*/
177177
size?: integer
178178
slice?: SlicedScroll
179-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/sort-search-results.html */
179+
/** @doc_id sort-search-results */
180180
sort?: Sort
181181
/**
182182
* Indicates which source fields are returned for matching documents. These

specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface Request extends RequestBase {
4040
body: {
4141
/**
4242
* The remote cluster containing the leader indices to match against.
43-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-remote-clusters.html
43+
* @doc_id modules-remote-clusters
4444
*/
4545
remote_cluster: string
4646
/**

specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export interface Request extends RequestBase {
4848
mappings?: TypeMapping
4949
settings?: IndexSettings
5050
version?: VersionNumber
51-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html */
51+
/** @doc_id mapping-meta-field */
5252
_meta?: Metadata
5353
}
5454
}

specification/cluster/stats/ClusterStatsResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class Response extends NodesResponseBase {
2626
body: {
2727
/**
2828
* Name of the cluster, based on the Cluster name setting setting.
29-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#cluster-name
29+
* @doc_id cluster-name
3030
*/
3131
cluster_name: Name
3232
/**
@@ -39,7 +39,7 @@ export class Response extends NodesResponseBase {
3939
indices: ClusterIndices
4040
/**
4141
* Contains statistics about nodes selected by the request’s node filters.
42-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html#cluster-nodes
42+
* @doc_id cluster-nodes
4343
*/
4444
nodes: ClusterNodes
4545
/**

specification/eql/_types/EqlSearchResponseBase.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ import { Id } from '@_types/common'
2121
import { integer } from '@_types/Numeric'
2222
import { EqlHits } from './EqlHits'
2323

24-
/**
25-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html#eql-search-api-response-body
26-
*/
2724
export class EqlSearchResponseBase<TEvent> {
2825
/**
2926
* Identifier for the search.

specification/eql/search/EqlSearchRequest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export interface Request extends RequestBase {
6666
body: {
6767
/**
6868
* EQL query you wish to run.
69-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-syntax.html
69+
* @doc_id eql-syntax
7070
*/
7171
query: string
7272
case_sensitive?: boolean
@@ -77,7 +77,7 @@ export interface Request extends RequestBase {
7777
event_category_field?: Field
7878
/**
7979
* Field used to sort hits with the same timestamp in ascending order
80-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/eql.html#eql-search-specify-a-sort-tiebreaker
80+
* @doc_id sort-tiebreaker
8181
*/
8282
tiebreaker_field?: Field
8383
/**
@@ -98,7 +98,7 @@ export interface Request extends RequestBase {
9898
wait_for_completion_timeout?: Time
9999
/**
100100
* For basic queries, the maximum number of matching events to return. Defaults to 10
101-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-syntax.html#eql-basic-syntax
101+
* @doc_id eql-basic-syntax
102102
*/
103103
size?: uint // doc says "integer of float" but it's really an int
104104
/**

specification/fleet/msearch/MultiSearchRequest.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
/**
5454
* If true, network roundtrips between the coordinating node and remote clusters are minimized for cross-cluster search requests.
5555
* @server_default true
56-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-cross-cluster-search.html#ccs-network-delays
56+
* @doc_id ccs-network-delays
5757
*/
5858
ccs_minimize_roundtrips?: boolean
5959
/**

specification/fleet/search/SearchRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export interface Request extends RequestBase {
187187
*/
188188
size?: integer
189189
slice?: SlicedScroll
190-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/sort-search-results.html */
190+
/** @doc_id sort-search-results */
191191
sort?: Sort
192192
/**
193193
* Indicates which source fields are returned for matching documents. These

0 commit comments

Comments
 (0)