/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import { EuiLink, EuiSpacer, EuiTitle } from "@elastic/eui"; import flat from "flat"; import CustomFormRow from "../../../../components/CustomFormRow"; import { AllBuiltInComponents } from "../../../../components/FormGenerator"; import AdvancedSettings from "../../../../components/AdvancedSettings"; import DescriptionListHoz from "../../../../components/DescriptionListHoz"; import { INDEX_SETTINGS_URL } from "../../../../utils/constants"; import { SubDetailProps } from "../../interface"; import { getCommonFormRowProps } from "../../hooks"; export default function IndexSettings(props: SubDetailProps) { const { readonly, field } = props; const values = field.getValues(); return ( <> Index settings {readonly ? ( ) : ( <> > )} { field.setValue(["template", "settings"], totalValue); field.validatePromise(); }} accordionProps={{ initialIsOpen: false, id: "accordionForCreateDataStreamSettings", buttonContent: Advanced settings, }} editorProps={{ disabled: true, width: "100%", formatValue: flat, }} rowProps={{ fullWidth: true, label: "Specify advanced index settings", helpText: ( <> Specify a comma-delimited list of settings.{" "} View index settings All the settings will be handled in flat structure.{" "} Learn more > ), }} /> > ); }
Specify a comma-delimited list of settings.{" "} View index settings
All the settings will be handled in flat structure.{" "} Learn more