Skip to content

Commit dc305f4

Browse files
committed
2 parents f134494 + 998d8ca commit dc305f4

File tree

27 files changed

+127
-83
lines changed

27 files changed

+127
-83
lines changed

output/schema/schema.json

Lines changed: 79 additions & 39 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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ 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-
////
344343
query-dsl-minimum-should-match,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/query-dsl-minimum-should-match.html
345344
query-dsl-multi-term-rewrite,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/query-dsl-multi-term-rewrite.html
346345
modules-node,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/modules-node.html
@@ -395,3 +394,8 @@ cluster-name,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/importa
395394
cluster-nodes,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/cluster.html#cluster-nodes
396395
sort-tiebreaker,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/eql.html#eql-search-specify-a-sort-tiebreaker
397396
eql-basic-syntax,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/eql-syntax.html#eql-basic-syntax
397+
time-value,https://github.com/elastic/elasticsearch/blob/8.1/libs/core/src/main/java/org/elasticsearch/core/TimeValue.java
398+
supported-flags,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/query-dsl-simple-query-string-query.html#supported-flags
399+
eql-sequences,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/eql-syntax.html#eql-sequences
400+
index-modules-settings,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/index-modules.html#index-modules-settings
401+
templating-role-query,https://www.elastic.co/guide/en/elasticsearch/reference/8.1/field-and-document-access-control.html#templating-role-query

specification/_global/rank_eval/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class RankEvalMetricRatingTreshold extends RankEvalMetricBase {
4141

4242
/**
4343
* Precision at K (P@k)
44-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/search-rank-eval.html#k-precision
44+
* @doc_id k-precision
4545
*/
4646
export class RankEvalMetricPrecision extends RankEvalMetricRatingTreshold {
4747
/**
@@ -53,19 +53,19 @@ export class RankEvalMetricPrecision extends RankEvalMetricRatingTreshold {
5353

5454
/**
5555
* Recall at K (R@k)
56-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/search-rank-eval.html#k-recall
56+
* @doc_id k-recall
5757
*/
5858
export class RankEvalMetricRecall extends RankEvalMetricRatingTreshold {}
5959

6060
/**
6161
* Mean Reciprocal Rank
62-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/search-rank-eval.html#_mean_reciprocal_rank
62+
* @doc_id mean-reciprocal
6363
*/
6464
export class RankEvalMetricMeanReciprocalRank extends RankEvalMetricRatingTreshold {}
6565

6666
/**
6767
* Discounted cumulative gain (DCG)
68-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/search-rank-eval.html#_discounted_cumulative_gain_dcg
68+
* @doc_id dcg
6969
*/
7070
export class RankEvalMetricDiscountedCumulativeGain extends RankEvalMetricBase {
7171
/**
@@ -78,7 +78,7 @@ export class RankEvalMetricDiscountedCumulativeGain extends RankEvalMetricBase {
7878

7979
/**
8080
* Expected Reciprocal Rank (ERR)
81-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/search-rank-eval.html#_expected_reciprocal_rank_err
81+
* @doc_id expected-reciprocal
8282
*/
8383
export class RankEvalMetricExpectedReciprocalRank extends RankEvalMetricBase {
8484
/**

specification/_types/Scripting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2222
import { Id } from './common'
2323

2424
/**
25-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html
25+
* @doc_id modules-scripting
2626
* @open_enum
2727
*/
2828
export enum ScriptLanguage {

specification/_types/Time.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type DateOrEpochMillis = DateString | EpochMillis
3737

3838
export type TimeZone = string
3939

40-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/7.x/mapping-date-format.html */
40+
/** @doc_id mapping-date-format */
4141
export type DateFormat = string
4242

4343
export enum DateMathOperation {
@@ -64,7 +64,7 @@ export enum DateMathTimeUnit {
6464

6565
/**
6666
* Whenever durations need to be specified, e.g. for a timeout parameter, the duration must specify the unit, like 2d for 2 days.
67-
* @doc_url https://github.com/elastic/elasticsearch/blob/master/libs/core/src/main/java/org/elasticsearch/core/TimeValue.java
67+
* @doc_id time-value
6868
* @codegen_names time, offset
6969
*/
7070
//FIXME: need to distinguish durations (has to be a string), offsets (can be a string or number)

specification/_types/aggregations/AggregationContainer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,18 @@ export class AggregationContainer {
125125
bucket_selector?: BucketSelectorAggregation
126126
bucket_sort?: BucketSortAggregation
127127
/**
128-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-count-ks-test-aggregation.html
128+
* @doc_id search-aggregations-bucket-count-ks-test-aggregation
129129
* @stability experimental
130130
*/
131131
bucket_count_ks_test?: BucketKsAggregation
132132
/**
133-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-correlation-aggregation.html
133+
* @doc_id search-aggregations-bucket-correlation-aggregation
134134
* @stability experimental
135135
*/
136136
bucket_correlation?: BucketCorrelationAggregation
137137
cardinality?: CardinalityAggregation
138138
/**
139-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-categorize-text-aggregation.html
139+
* @doc_id search-aggregations-bucket-categorize-text-aggregation
140140
* @stability experimental
141141
*/
142142
categorize_text?: CategorizeTextAggregation

specification/_types/analysis/normalizers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/**
2121
* @variants internal tag='type'
22-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-normalizers.html
22+
* @doc_id analysis-normalizers
2323
*/
2424
export type Normalizer = LowercaseNormalizer | CustomNormalizer
2525

specification/_types/common.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ export type Service = string
7070

7171
export type PipelineName = string
7272

73-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#modules-node */
73+
/** @doc_id modules-node */
7474
export type NodeName = string
7575

76-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-data-stream.html#indices-create-data-stream-api-path-params */
76+
/** @doc_id data-stream-path-param */
7777
export type DataStreamName = string
7878

7979
export type DataStreamNames = DataStreamName | DataStreamName[]
8080

81-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#byte-units */
81+
/** @doc_id byte-units */
8282
export type ByteSize = long | string
8383

8484
export type Metadata = Dictionary<string, UserDefinedValue>
@@ -105,7 +105,7 @@ export type PropertyName = string
105105
export type RelationName = string
106106
export type TaskId = string | integer
107107
export type Fuzziness = string | integer
108-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-term-rewrite.html */
108+
/** @doc_id query-dsl-multi-term-rewrite */
109109
export type MultiTermQueryRewrite = string
110110

111111
/** Path to field or array of paths. Some API's support wildcards in the path to select multiple fields. */
@@ -135,14 +135,14 @@ export class EmptyObject {}
135135

136136
/**
137137
* The minimum number of terms that should match as integer, percentage or range
138-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-minimum-should-match.html
138+
* @doc_id query-dsl-minimum-should-match
139139
*/
140140
export type MinimumShouldMatch = integer | string
141141

142142
/**
143143
* Byte size units. These units use powers of 1024, so 1 kB means 1024 bytes.
144144
*
145-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#byte-units
145+
* @doc_id byte-units
146146
*/
147147
export enum Bytes {
148148
/** @codegen_name bytes */

specification/_types/mapping/Property.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {
4141

4242
export class PropertyBase {
4343
local_metadata?: Metadata
44-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html */
44+
/** @doc_id mapping-meta-field */
4545
meta?: Dictionary<string, string>
4646
name?: PropertyName
4747
properties?: Dictionary<PropertyName, Property>

specification/_types/mapping/TypeMapping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class TypeMapping {
4141
| Dictionary<string, DynamicTemplate>[]
4242
_field_names?: FieldNamesField
4343
index_field?: IndexField
44-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html */
44+
/** @doc_id mapping-meta-field */
4545
_meta?: Metadata
4646
numeric_detection?: boolean
4747
properties?: Dictionary<PropertyName, Property>

specification/_types/mapping/geo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export enum GeoOrientation {
3838
* The `geo_shape` data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles
3939
* and polygons.
4040
*
41-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html
41+
* @doc_id geo-shape
4242
*/
4343
export class GeoShapeProperty extends DocValuesPropertyBase {
4444
coerce?: boolean
@@ -70,7 +70,7 @@ export class PointProperty extends DocValuesPropertyBase {
7070
* The `shape` data type facilitates the indexing of and searching with arbitrary `x, y` cartesian shapes such as
7171
* rectangles and polygons.
7272
*
73-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/shape.html
73+
* @doc_id shape
7474
*/
7575
export class ShapeProperty extends DocValuesPropertyBase {
7676
coerce?: boolean

specification/_types/query_dsl/abstractions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ import {
9696

9797
/**
9898
* @variants container
99-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
99+
* @doc_id query-dsl
100100
*/
101101
export class QueryContainer {
102102
bool?: BoolQuery

specification/_types/query_dsl/fulltext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export class QueryStringQuery extends QueryBase {
270270

271271
/**
272272
* Query flags can be either a single flag or a combination of flags, e.g. `OR|AND|PREFIX`
273-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/7.15/query-dsl-simple-query-string-query.html#supported-flags
273+
* @doc_id supported-flags
274274
* @codegen_names single, multiple
275275
*/
276276
export type SimpleQueryStringFlags = SimpleQueryStringFlag | string

specification/_types/query_dsl/specialized.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class LikeDocument {
102102

103103
/**
104104
* Text that we want similar documents for or a lookup to a document's field for the text.
105-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-mlt-query.html#_document_input_parameters
105+
* @doc_id document-input-parameters
106106
* @codegen_names text, document
107107
*/
108108
export type Like = string | LikeDocument

specification/_types/sort.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export enum ScriptSortType {
7878
}
7979

8080
/**
81-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/sort-search-results.html
81+
* @doc_id sort-search-results
8282
* @variants container
8383
*/
8484
export class SortOptions implements AdditionalProperty<Field, FieldSort> {

specification/cluster/_types/ComponentTemplate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ export class ComponentTemplate {
3131
export class ComponentTemplateNode {
3232
template: ComponentTemplateSummary
3333
version?: VersionNumber
34-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html */
34+
/** @doc_id mapping-meta-field */
3535
_meta?: Metadata
3636
}
3737

3838
export class ComponentTemplateSummary {
39-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html */
39+
/** @doc_id mapping-meta-field */
4040
_meta?: Metadata
4141
version?: VersionNumber
4242
settings: Dictionary<IndexName, IndexSettings>

specification/cluster/allocation_explain/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class UnassignedInformation {
125125
}
126126

127127
/**
128-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-shards.html#cat-shards-query-params
128+
* @doc_id cat-shards
129129
*/
130130
export enum UnassignedInformationReason {
131131
INDEX_CREATED = 0,

specification/cluster/reroute/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class CommandMoveAction {
6767
}
6868

6969
/**
70-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-cluster.html
70+
* @doc_id modules-cluster
7171
*/
7272
export class CommandAllocateReplicaAction {
7373
index: IndexName

specification/cluster/stats/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class ClusterIndices {
6868
docs: DocStats
6969
/**
7070
* Contains statistics about the field data cache of selected nodes.
71-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-fielddata.html
71+
* @doc_id modules-fielddata
7272
*/
7373
fielddata: FielddataStats
7474
/** Contains statistics about the query cache of selected nodes. */
@@ -81,12 +81,12 @@ export class ClusterIndices {
8181
store: StoreStats
8282
/**
8383
* Contains statistics about field mappings in selected nodes.
84-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html
84+
* @doc_id mapping
8585
*/
8686
mappings: FieldTypesMappings
8787
/**
8888
* Contains statistics about analyzers and analyzer components used in selected nodes.
89-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/analyzer-anatomy.html
89+
* @doc_id analyzer-anatomy
9090
*/
9191
analysis: CharFilterTypes
9292
versions?: IndicesVersions[]
@@ -195,7 +195,7 @@ export class ClusterNodes {
195195
count: ClusterNodeCount
196196
/**
197197
* Contains statistics about the discovery types used by selected nodes.
198-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-hosts-providers.html
198+
* @doc_id modules-discovery-hosts-providers
199199
*/
200200
discovery_types: Dictionary<string, integer>
201201
/** Contains statistics about file stores by selected nodes. */

specification/eql/_types/EqlHits.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class EqlHits<TEvent> {
3333
events?: HitsEvent<TEvent>[]
3434
/**
3535
* Contains event sequences matching the query. Each object represents a matching sequence. This parameter is only returned for EQL queries containing a sequence.
36-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-syntax.html#eql-sequences
36+
* @doc_id eql-sequences
3737
*/
3838
sequences?: HitsSequence<TEvent>[]
3939
}
@@ -53,7 +53,7 @@ export class HitsSequence<TEvent> {
5353
events: HitsEvent<TEvent>[]
5454
/**
5555
* Shared field values used to constrain matches in the sequence. These are defined using the by keyword in the EQL query syntax.
56-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-syntax.html#eql-sequences
56+
* @doc_id eql-sequences
5757
*/
5858
join_keys: UserDefinedValue[]
5959
}

specification/indices/_types/DataStream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class DataStream {
4040
system?: boolean
4141
status: HealthStatus
4242
ilm_policy?: Name
43-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html */
43+
/** @doc_id mapping-meta-field */
4444
_meta?: Metadata
4545
allow_custom_routing?: boolean
4646
}

specification/indices/_types/IndexSettings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class RetentionLease {
5454
}
5555

5656
/**
57-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/7.8/index-modules.html#index-modules-settings
57+
* @doc_id index-modules-settings
5858
*/
5959
export class IndexSettings {
6060
index?: IndexSettings

specification/indices/_types/IndexTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class IndexTemplate {
3030
template?: IndexTemplateSummary
3131
version?: VersionNumber
3232
priority?: long
33-
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html */
33+
/** @doc_id mapping-meta-field */
3434
_meta?: Metadata
3535
allow_auto_create?: boolean
3636
data_stream?: IndexTemplateDataStreamConfiguration

specification/nodes/_types/NodesResponseBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { NodeStatistics } from '../../_types/Node'
2222
export class NodesResponseBase {
2323
/**
2424
* Contains statistics about the number of nodes selected by the request’s node filters.
25-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html#cluster-nodes
25+
* @doc_id cluster-nodes
2626
* @codegen_name node_stats
2727
*/
2828
_nodes?: NodeStatistics

specification/nodes/info/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class NodeInfo {
4949
thread_pool?: Dictionary<string, NodeThreadPoolInfo>
5050
/**
5151
* Total heap allowed to be used to hold recently indexed documents before they must be written to disk. This size is a shared pool across all shards on this node, and is controlled by Indexing Buffer settings.
52-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/master/indexing-buffer.html
52+
* @doc_id indexing-buffer
5353
*/
5454
total_indexing_buffer?: long
5555
/** Same as total_indexing_buffer, but expressed in bytes. */

specification/security/_types/Privileges.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class RoleTemplateQueryContainer {
109109
* Like other places in Elasticsearch that support templating or scripting, you can specify inline, stored, or file-based
110110
* templates and define custom parameters. You access the details for the current authenticated user through the _user parameter.
111111
*
112-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/field-and-document-access-control.html#templating-role-query
112+
* @doc_id templating-role-query
113113
*/
114114
template?: RoleTemplateScript
115115
}

specification/watcher/_types/Schedule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { DateString, Time } from '@_types/Time'
2525
// export class ScheduleBase {}
2626

2727
/**
28-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/cron-expressions.html
28+
* @doc_id cron-expressions
2929
*/
3030
export type CronExpression = string
3131
//export class CronExpression extends ScheduleBase {}

0 commit comments

Comments
 (0)