diff --git a/x-pack/legacy/plugins/index_management/public/app/components/mappings_editor/constants/data_types_definition.tsx b/x-pack/legacy/plugins/index_management/public/app/components/mappings_editor/constants/data_types_definition.tsx index b4f599c3efce9f..0e3775e3ea2142 100644 --- a/x-pack/legacy/plugins/index_management/public/app/components/mappings_editor/constants/data_types_definition.tsx +++ b/x-pack/legacy/plugins/index_management/public/app/components/mappings_editor/constants/data_types_definition.tsx @@ -257,6 +257,26 @@ export const TYPE_DEFINITION: { [key in DataType]: DataTypeDefinition } = { documentation: { main: '/object.html', }, + description: () => ( +

+ + {i18n.translate( + 'xpack.idxMgmt.mappingsEditor.dataType.objectLongDescription.nestedTypeLink', + { + defaultMessage: 'nested data type', + } + )} + + ), + }} + /> +

+ ), }, nested: { label: i18n.translate('xpack.idxMgmt.mappingsEditor.dataType.nestedDescription', { @@ -266,6 +286,26 @@ export const TYPE_DEFINITION: { [key in DataType]: DataTypeDefinition } = { documentation: { main: '/nested.html', }, + description: () => ( +

+ + {i18n.translate( + 'xpack.idxMgmt.mappingsEditor.dataType.nestedLongDescription.objectTypeLink', + { + defaultMessage: 'objects', + } + )} + + ), + }} + /> +

+ ), }, rank_feature: { label: i18n.translate('xpack.idxMgmt.mappingsEditor.dataType.rankFeatureDescription', { @@ -275,6 +315,26 @@ export const TYPE_DEFINITION: { [key in DataType]: DataTypeDefinition } = { documentation: { main: '/rank-feature.html', }, + description: () => ( +

+ + {i18n.translate( + 'xpack.idxMgmt.mappingsEditor.dataType.rankFeatureLongDescription.queryLink', + { + defaultMessage: 'rank_feature queries', + } + )} + + ), + }} + /> +

+ ), }, rank_features: { label: i18n.translate('xpack.idxMgmt.mappingsEditor.dataType.rankFeaturesDescription', { @@ -284,6 +344,26 @@ export const TYPE_DEFINITION: { [key in DataType]: DataTypeDefinition } = { documentation: { main: '/rank-features.html', }, + description: () => ( +

+ + {i18n.translate( + 'xpack.idxMgmt.mappingsEditor.dataType.rankFeaturesLongDescription.queryLink', + { + defaultMessage: 'rank_feature queries', + } + )} + + ), + }} + /> +

+ ), }, dense_vector: { label: i18n.translate('xpack.idxMgmt.mappingsEditor.dataType.denseVectorDescription', { @@ -454,6 +534,26 @@ export const TYPE_DEFINITION: { [key in DataType]: DataTypeDefinition } = { documentation: { main: '/percolator.html', }, + description: () => ( +

+ + {i18n.translate( + 'xpack.idxMgmt.mappingsEditor.dataType.percolatorLongDescription.learnMoreLink', + { + defaultMessage: 'percolator queries', + } + )} + + ), + }} + /> +

+ ), }, join: { label: i18n.translate('xpack.idxMgmt.mappingsEditor.dataType.joinDescription', { @@ -463,6 +563,14 @@ export const TYPE_DEFINITION: { [key in DataType]: DataTypeDefinition } = { documentation: { main: '/parent-join.html', }, + description: () => ( +

+ +

+ ), }, alias: { label: i18n.translate('xpack.idxMgmt.mappingsEditor.dataType.aliasDescription', { diff --git a/x-pack/legacy/plugins/index_management/public/app/services/documentation.ts b/x-pack/legacy/plugins/index_management/public/app/services/documentation.ts index 81d7a2bfcba781..036388452f8763 100644 --- a/x-pack/legacy/plugins/index_management/public/app/services/documentation.ts +++ b/x-pack/legacy/plugins/index_management/public/app/services/documentation.ts @@ -57,6 +57,14 @@ class DocumentationService { return `${this.esDocsBase}/dynamic-field-mapping.html`; } + public getPercolatorQueryLink() { + return `${this.esDocsBase}/query-dsl-percolate-query.html`; + } + + public getRankFeatureQueryLink() { + return `${this.esDocsBase}/rank-feature.html`; + } + public getMetaFieldLink() { return `${this.esDocsBase}/mapping-meta-field.html`; }