diff --git a/x-pack/plugins/search_indices/public/components/start/create_index_code.tsx b/x-pack/plugins/search_indices/public/components/start/create_index_code.tsx
index ed473b1a63012..eda63a5f95594 100644
--- a/x-pack/plugins/search_indices/public/components/start/create_index_code.tsx
+++ b/x-pack/plugins/search_indices/public/components/start/create_index_code.tsx
@@ -6,7 +6,6 @@
*/
import React, { useCallback, useMemo } from 'react';
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
-import { i18n } from '@kbn/i18n';
import { TryInConsoleButton } from '@kbn/try-in-console';
import { useSearchApiKey } from '@kbn/search-api-keys-components';
@@ -99,9 +98,8 @@ export const CreateIndexCodeView = ({
{selectedCodeExample.installCommand && (
{
@@ -114,9 +112,8 @@ export const CreateIndexCodeView = ({
)}
{
diff --git a/x-pack/plugins/search_indices/public/types.ts b/x-pack/plugins/search_indices/public/types.ts
index 51c05687f9dc6..8a42bf9950f21 100644
--- a/x-pack/plugins/search_indices/public/types.ts
+++ b/x-pack/plugins/search_indices/public/types.ts
@@ -88,6 +88,10 @@ export interface CreateIndexCodeDefinition {
export interface CreateIndexCodeExamples {
exampleType: string;
+ installTitle: string;
+ installDescription: string;
+ createIndexTitle: string;
+ createIndexDescription: string;
sense: CreateIndexCodeDefinition;
curl: CreateIndexCodeDefinition;
python: CreateIndexCodeDefinition;
@@ -109,9 +113,10 @@ export interface IngestDataCodeDefinition {
}
export interface IngestDataCodeExamples {
- title: string;
- ingestTitle: string;
- description: string;
+ addMappingsTitle: string;
+ addMappingsDescription: string;
+ installTitle: string;
+ installDescription: string;
defaultMapping: Record;
sense: IngestDataCodeDefinition;
curl: IngestDataCodeDefinition;