@@ -43,17 +43,18 @@ export class DocLinksService {
43
43
public start ( { injectedMetadata } : StartDeps ) : DocLinksStart {
44
44
const DOC_LINK_VERSION = injectedMetadata . getOpenSearchDashboardsBranch ( ) ;
45
45
const OPENSEARCH_WEBSITE_URL = 'https://www.opensearch.org/' ;
46
- const OPENSEARCH_DOCS = `${ OPENSEARCH_WEBSITE_URL } guide/en/elasticsearch/reference/${ DOC_LINK_VERSION } /` ;
46
+ const OPENSEARCH_DOCS = `https://docs-beta.opensearch.org/docs/opensearch/` ;
47
+ const OPENSEARCH_DASHBOARDS_DOCS = `https://docs-beta.opensearch.org/docs/opensearch-dashboards/` ;
47
48
48
49
return deepFreeze ( {
49
50
DOC_LINK_VERSION ,
50
51
OPENSEARCH_WEBSITE_URL ,
51
52
links : {
52
53
dashboard : {
53
- drilldowns : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana /${ DOC_LINK_VERSION } /drilldowns.html` ,
54
- drilldownsTriggerPicker : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana /${ DOC_LINK_VERSION } /drilldowns.html#url-drilldowns` ,
55
- urlDrilldownTemplateSyntax : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana /${ DOC_LINK_VERSION } /url_templating-language.html` ,
56
- urlDrilldownVariables : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana /${ DOC_LINK_VERSION } /url_templating-language.html#url-template-variables` ,
54
+ drilldowns : `${ OPENSEARCH_WEBSITE_URL } guide/en/opensearch /${ DOC_LINK_VERSION } /drilldowns.html` ,
55
+ drilldownsTriggerPicker : `${ OPENSEARCH_WEBSITE_URL } guide/en/opensearch /${ DOC_LINK_VERSION } /drilldowns.html#url-drilldowns` ,
56
+ urlDrilldownTemplateSyntax : `${ OPENSEARCH_WEBSITE_URL } guide/en/opensearch /${ DOC_LINK_VERSION } /url_templating-language.html` ,
57
+ urlDrilldownVariables : `${ OPENSEARCH_WEBSITE_URL } guide/en/opensearch /${ DOC_LINK_VERSION } /url_templating-language.html#url-template-variables` ,
57
58
} ,
58
59
filebeat : {
59
60
base : `${ OPENSEARCH_WEBSITE_URL } guide/en/beats/filebeat/${ DOC_LINK_VERSION } ` ,
@@ -82,72 +83,72 @@ export class DocLinksService {
82
83
base : `${ OPENSEARCH_WEBSITE_URL } guide/en/beats/winlogbeat/${ DOC_LINK_VERSION } ` ,
83
84
} ,
84
85
aggs : {
85
- date_histogram : `${ OPENSEARCH_DOCS } search-aggregations- bucket-datehistogram-aggregation.html ` ,
86
- date_range : `${ OPENSEARCH_DOCS } search-aggregations- bucket-daterange-aggregation.html ` ,
87
- filter : `${ OPENSEARCH_DOCS } search-aggregations- bucket-filter-aggregation.html ` ,
88
- filters : `${ OPENSEARCH_DOCS } search-aggregations- bucket-filters-aggregation.html ` ,
89
- geohash_grid : `${ OPENSEARCH_DOCS } search-aggregations- bucket-geohashgrid-aggregation.html ` ,
90
- histogram : `${ OPENSEARCH_DOCS } search-aggregations- bucket-histogram-aggregation.html ` ,
91
- ip_range : `${ OPENSEARCH_DOCS } search-aggregations- bucket-iprange-aggregation.html ` ,
92
- range : `${ OPENSEARCH_DOCS } search-aggregations- bucket-range-aggregation.html ` ,
93
- significant_terms : `${ OPENSEARCH_DOCS } search-aggregations- bucket-significantterms-aggregation.html ` ,
94
- terms : `${ OPENSEARCH_DOCS } search-aggregations- bucket-terms-aggregation.html ` ,
95
- avg : `${ OPENSEARCH_DOCS } search-aggregations-metrics-avg-aggregation.html ` ,
96
- avg_bucket : `${ OPENSEARCH_DOCS } search-aggregations- pipeline-avg-bucket-aggregation.html ` ,
97
- max_bucket : `${ OPENSEARCH_DOCS } search-aggregations- pipeline-max-bucket-aggregation.html ` ,
98
- min_bucket : `${ OPENSEARCH_DOCS } search-aggregations- pipeline-min-bucket-aggregation.html ` ,
99
- sum_bucket : `${ OPENSEARCH_DOCS } search-aggregations- pipeline-sum-bucket-aggregation.html ` ,
100
- cardinality : `${ OPENSEARCH_DOCS } search-aggregations-metrics- cardinality-aggregation.html ` ,
101
- count : `${ OPENSEARCH_DOCS } search-aggregations-metrics-valuecount-aggregation.html ` ,
102
- cumulative_sum : `${ OPENSEARCH_DOCS } search-aggregations-metrics-sum-aggregation.html ` ,
103
- derivative : `${ OPENSEARCH_DOCS } search-aggregations- pipeline-derivative-aggregation.html ` ,
104
- geo_bounds : `${ OPENSEARCH_DOCS } search-aggregations-metrics-geobounds-aggregation.html ` ,
105
- geo_centroid : `${ OPENSEARCH_DOCS } search-aggregations-metrics-geocentroid-aggregation.html ` ,
106
- max : `${ OPENSEARCH_DOCS } search-aggregations-metrics -max-aggregation.html ` ,
107
- median : `${ OPENSEARCH_DOCS } search-aggregations-metrics-percentile-aggregation.html ` ,
108
- min : `${ OPENSEARCH_DOCS } search-aggregations-metrics- min-aggregation.html ` ,
109
- moving_avg : `${ OPENSEARCH_DOCS } search-aggregations- pipeline-movavg-aggregation.html ` ,
110
- percentile_ranks : `${ OPENSEARCH_DOCS } search-aggregations-metrics- percentile-rank-aggregation.html ` ,
111
- serial_diff : `${ OPENSEARCH_DOCS } search-aggregations- pipeline-serialdiff-aggregation.html ` ,
112
- std_dev : `${ OPENSEARCH_DOCS } search-aggregations-metrics-extendedstats-aggregation.html ` ,
113
- sum : `${ OPENSEARCH_DOCS } search-aggregations-metrics-sum-aggregation.html ` ,
114
- top_hits : `${ OPENSEARCH_DOCS } search-aggregations-metrics-top-hits-aggregation.html ` ,
86
+ date_histogram : `${ OPENSEARCH_DOCS } bucket-agg/#histogram-date_histogram ` ,
87
+ date_range : `${ OPENSEARCH_DOCS } bucket-agg/#range-date_range-ip_range ` ,
88
+ filter : `${ OPENSEARCH_DOCS } bucket-agg/# filter-filters ` ,
89
+ filters : `${ OPENSEARCH_DOCS } bucket-agg/#filter-filters ` ,
90
+ geohash_grid : `${ OPENSEARCH_DOCS } bucket-agg/#geo_distance-geohash_grid ` ,
91
+ histogram : `${ OPENSEARCH_DOCS } bucket-agg/# histogram-date_histogram ` ,
92
+ ip_range : `${ OPENSEARCH_DOCS } bucket-agg/#range-date_range-ip_range ` ,
93
+ range : `${ OPENSEARCH_DOCS } bucket-agg/# range-date_range-ip_range ` ,
94
+ significant_terms : `${ OPENSEARCH_DOCS } bucket-agg/#significant_terms-significant_text ` ,
95
+ terms : `${ OPENSEARCH_DOCS } bucket-agg/# terms` ,
96
+ avg : `${ OPENSEARCH_DOCS } metric-agg/#sum-min-max-avg ` ,
97
+ avg_bucket : `${ OPENSEARCH_DOCS } pipeline-agg/#avg_bucket-sum_bucket-min_bucket-max_bucket ` ,
98
+ max_bucket : `${ OPENSEARCH_DOCS } pipeline-agg/#avg_bucket-sum_bucket-min_bucket-max_bucket ` ,
99
+ min_bucket : `${ OPENSEARCH_DOCS } pipeline-agg/#avg_bucket-sum_bucket-min_bucket-max_bucket ` ,
100
+ sum_bucket : `${ OPENSEARCH_DOCS } pipeline-agg/#avg_bucket-sum_bucket-min_bucket-max_bucket ` ,
101
+ cardinality : `${ OPENSEARCH_DOCS } metric-agg/# cardinality` ,
102
+ count : `${ OPENSEARCH_DOCS } metric-agg/#value_count ` ,
103
+ cumulative_sum : `${ OPENSEARCH_DOCS } pipeline-agg/#cumulative_sum ` ,
104
+ derivative : `${ OPENSEARCH_DOCS } pipeline-agg/# derivative` ,
105
+ geo_bounds : `${ OPENSEARCH_DOCS } metric-agg/#geo_bound ` ,
106
+ geo_centroid : `${ OPENSEARCH_DOCS } metric-agg/#geo_bound ` ,
107
+ max : `${ OPENSEARCH_DOCS } metric-agg/#sum-min -max-avg ` ,
108
+ median : `${ OPENSEARCH_DOCS } metric-agg/#sum-min-max-avg ` ,
109
+ min : `${ OPENSEARCH_DOCS } metric-agg/#sum- min-max-avg ` ,
110
+ moving_avg : `${ OPENSEARCH_DOCS } pipeline-agg/#moving_avg ` ,
111
+ percentile_ranks : `${ OPENSEARCH_DOCS } metric-agg/# percentile-percentile_ranks ` ,
112
+ serial_diff : `${ OPENSEARCH_DOCS } pipeline-agg/#serial_diff ` ,
113
+ std_dev : `${ OPENSEARCH_DOCS } metric-agg/#stats-extended_stats-matrix_stats ` ,
114
+ sum : `${ OPENSEARCH_DOCS } metric-agg/#sum-min-max-avg ` ,
115
+ top_hits : `${ OPENSEARCH_DOCS } metric-agg/#top_hits ` ,
115
116
} ,
116
117
scriptedFields : {
117
118
scriptFields : `${ OPENSEARCH_DOCS } search-request-script-fields.html` ,
118
- scriptAggs : `${ OPENSEARCH_DOCS } search-aggregations.html#_values_source ` ,
119
+ scriptAggs : `${ OPENSEARCH_DOCS } metric-agg/#scripted_metric ` ,
119
120
painless : `${ OPENSEARCH_DOCS } modules-scripting-painless.html` ,
120
121
painlessApi : `${ OPENSEARCH_WEBSITE_URL } guide/en/elasticsearch/painless/${ DOC_LINK_VERSION } /painless-api-reference.html` ,
121
122
painlessSyntax : `${ OPENSEARCH_DOCS } modules-scripting-painless-syntax.html` ,
122
123
luceneExpressions : `${ OPENSEARCH_DOCS } modules-scripting-expression.html` ,
123
124
} ,
124
125
indexPatterns : {
125
- loadingData : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana /${ DOC_LINK_VERSION } /tutorial-load-dataset.html` ,
126
- introduction : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana /${ DOC_LINK_VERSION } /index-patterns.html` ,
126
+ loadingData : `${ OPENSEARCH_WEBSITE_URL } guide/en/opensearch /${ DOC_LINK_VERSION } /tutorial-load-dataset.html` ,
127
+ introduction : `${ OPENSEARCH_WEBSITE_URL } guide/en/opensearch /${ DOC_LINK_VERSION } /index-patterns.html` ,
127
128
} ,
128
- addData : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana /${ DOC_LINK_VERSION } /connect-to-elasticsearch.html` ,
129
- opensearchDashboards : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana/ ${ DOC_LINK_VERSION } /index.html ` ,
129
+ addData : `${ OPENSEARCH_WEBSITE_URL } guide/en/opensearch /${ DOC_LINK_VERSION } /connect-to-elasticsearch.html` ,
130
+ opensearchDashboards : `${ OPENSEARCH_DASHBOARDS_DOCS } ` ,
130
131
siem : {
131
132
guide : `${ OPENSEARCH_WEBSITE_URL } guide/en/security/${ DOC_LINK_VERSION } /index.html` ,
132
133
gettingStarted : `${ OPENSEARCH_WEBSITE_URL } guide/en/security/${ DOC_LINK_VERSION } /index.html` ,
133
134
} ,
134
135
query : {
135
136
eql : `${ OPENSEARCH_DOCS } eql.html` ,
136
137
luceneQuerySyntax : `${ OPENSEARCH_DOCS } query-dsl-query-string-query.html#query-string-syntax` ,
137
- queryDsl : `${ OPENSEARCH_DOCS } query-dsl.html ` ,
138
- kueryQuerySyntax : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana/ ${ DOC_LINK_VERSION } /kuery- query.html ` ,
138
+ queryDsl : `${ OPENSEARCH_DOCS } query-dsl` ,
139
+ kueryQuerySyntax : `${ OPENSEARCH_DOCS } query-dsl ` ,
139
140
} ,
140
141
date : {
141
142
dateMath : `${ OPENSEARCH_DOCS } common-options.html#date-math` ,
142
143
} ,
143
144
management : {
144
- opensearchDashboardsGeneralSettings : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana /${ DOC_LINK_VERSION } /advanced-options.html#kibana -general-settings` ,
145
- opensearchDashboardsSearchSettings : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana /${ DOC_LINK_VERSION } /advanced-options.html#kibana -search-settings` ,
146
- dashboardSettings : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana /${ DOC_LINK_VERSION } /advanced-options.html#kibana -dashboard-settings` ,
145
+ opensearchDashboardsGeneralSettings : `${ OPENSEARCH_WEBSITE_URL } guide/en/opensearch /${ DOC_LINK_VERSION } /advanced-options.html#opensearch -general-settings` ,
146
+ opensearchDashboardsSearchSettings : `${ OPENSEARCH_WEBSITE_URL } guide/en/opensearch /${ DOC_LINK_VERSION } /advanced-options.html#opensearch -search-settings` ,
147
+ dashboardSettings : `${ OPENSEARCH_WEBSITE_URL } guide/en/opensearch /${ DOC_LINK_VERSION } /advanced-options.html#opensearch -dashboard-settings` ,
147
148
} ,
148
149
visualize : {
149
- guide : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana /${ DOC_LINK_VERSION } /dashboard.html` ,
150
- timelineDeprecation : `${ OPENSEARCH_WEBSITE_URL } guide/en/kibana /${ DOC_LINK_VERSION } /dashboard.html#timeline-deprecation` ,
150
+ guide : `${ OPENSEARCH_WEBSITE_URL } guide/en/opensearch /${ DOC_LINK_VERSION } /dashboard.html` ,
151
+ timelineDeprecation : `${ OPENSEARCH_WEBSITE_URL } guide/en/opensearch /${ DOC_LINK_VERSION } /dashboard.html#timeline-deprecation` ,
151
152
} ,
152
153
} ,
153
154
} ) ;
0 commit comments