diff --git a/src/plugins/data/server/saved_objects/query.ts b/src/plugins/data/server/saved_objects/query.ts index 0e11bf7a9f2e0..f97cf5be65908 100644 --- a/src/plugins/data/server/saved_objects/query.ts +++ b/src/plugins/data/server/saved_objects/query.ts @@ -29,12 +29,13 @@ export const querySavedObjectType: SavedObjectsType = { }, }, mappings: { + dynamic: false, properties: { title: { type: 'text' }, description: { type: 'text' }, - query: { - properties: { language: { type: 'keyword' }, query: { type: 'keyword', index: false } }, - }, + // query: { + // properties: { language: { type: 'keyword' }, query: { type: 'keyword', index: false } }, + // }, filters: { dynamic: false, properties: {}, diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/mappings.ts b/src/plugins/files/server/blob_storage_service/adapters/es/mappings.ts index 6f7f99d818193..0d470c570543e 100644 --- a/src/plugins/files/server/blob_storage_service/adapters/es/mappings.ts +++ b/src/plugins/files/server/blob_storage_service/adapters/es/mappings.ts @@ -23,22 +23,23 @@ export interface FileChunkDocument { */ data: string; - /** - * Blob ID field that tags a set of blobs as belonging to the same file. - */ - bid: string; + // /** + // * Blob ID field that tags a set of blobs as belonging to the same file. + // */ + // bid: string; - /** - * Whether this is the last chunk in a sequence. - */ - last?: boolean; + // /** + // * Whether this is the last chunk in a sequence. + // */ + // last?: boolean; } export const mappings: MappingTypeMapping = { dynamic: false, properties: { + dynamic: false, data: { type: 'binary' }, // Binary fields are automatically marked as not searchable by ES - bid: { type: 'keyword', index: false }, - last: { type: 'boolean', index: false }, + // bid: { type: 'keyword', index: false }, + // last: { type: 'boolean', index: false }, } as Record, // Ensure that our ES types and TS types stay somewhat in sync } as const; diff --git a/src/plugins/saved_search/server/saved_objects/search.ts b/src/plugins/saved_search/server/saved_objects/search.ts index 83923df21480f..3d388c2656342 100644 --- a/src/plugins/saved_search/server/saved_objects/search.ts +++ b/src/plugins/saved_search/server/saved_objects/search.ts @@ -33,41 +33,42 @@ export function getSavedSearchObjectType( }, }, mappings: { + dynamic: false, properties: { - columns: { type: 'keyword', index: false, doc_values: false }, + // columns: { type: 'keyword', index: false, doc_values: false }, description: { type: 'text' }, - viewMode: { type: 'keyword', index: false, doc_values: false }, - hideChart: { type: 'boolean', index: false, doc_values: false }, - isTextBasedQuery: { type: 'boolean', index: false, doc_values: false }, - usesAdHocDataView: { type: 'boolean', index: false, doc_values: false }, - hideAggregatedPreview: { type: 'boolean', index: false, doc_values: false }, - hits: { type: 'integer', index: false, doc_values: false }, + // viewMode: { type: 'keyword', index: false, doc_values: false }, + // hideChart: { type: 'boolean', index: false, doc_values: false }, + // isTextBasedQuery: { type: 'boolean', index: false, doc_values: false }, + // usesAdHocDataView: { type: 'boolean', index: false, doc_values: false }, + // hideAggregatedPreview: { type: 'boolean', index: false, doc_values: false }, + // hits: { type: 'integer', index: false, doc_values: false }, kibanaSavedObjectMeta: { properties: { searchSourceJSON: { type: 'text', index: false }, }, }, - sort: { type: 'keyword', index: false, doc_values: false }, + // sort: { type: 'keyword', index: false, doc_values: false }, title: { type: 'text' }, grid: { dynamic: false, properties: {} }, version: { type: 'integer' }, rowHeight: { type: 'text' }, - timeRestore: { type: 'boolean', index: false, doc_values: false }, + // timeRestore: { type: 'boolean', index: false, doc_values: false }, timeRange: { dynamic: false, properties: { - from: { type: 'keyword', index: false, doc_values: false }, - to: { type: 'keyword', index: false, doc_values: false }, + // from: { type: 'keyword', index: false, doc_values: false }, + // to: { type: 'keyword', index: false, doc_values: false }, }, }, refreshInterval: { dynamic: false, properties: { - pause: { type: 'boolean', index: false, doc_values: false }, - value: { type: 'integer', index: false, doc_values: false }, + // pause: { type: 'boolean', index: false, doc_values: false }, + // value: { type: 'integer', index: false, doc_values: false }, }, }, - rowsPerPage: { type: 'integer', index: false, doc_values: false }, + // rowsPerPage: { type: 'integer', index: false, doc_values: false }, breakdownField: { type: 'text' }, }, }, diff --git a/src/plugins/share/server/url_service/saved_objects/register_url_service_saved_object_type.ts b/src/plugins/share/server/url_service/saved_objects/register_url_service_saved_object_type.ts index 929928eda3f9a..c193e9cb0d4d5 100644 --- a/src/plugins/share/server/url_service/saved_objects/register_url_service_saved_object_type.ts +++ b/src/plugins/share/server/url_service/saved_objects/register_url_service_saved_object_type.ts @@ -37,6 +37,7 @@ export const registerUrlServiceSavedObjectType = ( }, }, mappings: { + dynamic: false, properties: { slug: { type: 'text', @@ -67,11 +68,11 @@ export const registerUrlServiceSavedObjectType = ( }, }, }, - // Information needed to load and execute a locator. - locatorJSON: { - type: 'text', - index: false, - }, + // // Information needed to load and execute a locator. + // locatorJSON: { + // type: 'text', + // index: false, + // }, }, }, migrations: () => { diff --git a/src/plugins/visualizations/server/saved_objects/visualization.ts b/src/plugins/visualizations/server/saved_objects/visualization.ts index 30d60a36abcfc..9fb710bedb51e 100644 --- a/src/plugins/visualizations/server/saved_objects/visualization.ts +++ b/src/plugins/visualizations/server/saved_objects/visualization.ts @@ -32,16 +32,19 @@ export const getVisualizationSavedObjectType = ( }, }, mappings: { + dynamic: false, properties: { description: { type: 'text' }, kibanaSavedObjectMeta: { - properties: { searchSourceJSON: { type: 'text', index: false } }, + properties: { + // searchSourceJSON: { type: 'text', index: false } + }, }, - savedSearchRefName: { type: 'keyword', index: false, doc_values: false }, + // savedSearchRefName: { type: 'keyword', index: false, doc_values: false }, title: { type: 'text' }, - uiStateJSON: { type: 'text', index: false }, + // uiStateJSON: { type: 'text', index: false }, version: { type: 'integer' }, - visState: { type: 'text', index: false }, + // visState: { type: 'text', index: false }, }, }, migrations: () => getAllMigrations(getSearchSourceMigrations()), diff --git a/x-pack/plugins/alerting/server/saved_objects/mappings.ts b/x-pack/plugins/alerting/server/saved_objects/mappings.ts index 9e3bc06e7ca39..fde386176b410 100644 --- a/x-pack/plugins/alerting/server/saved_objects/mappings.ts +++ b/x-pack/plugins/alerting/server/saved_objects/mappings.ts @@ -8,6 +8,7 @@ import { SavedObjectsTypeMappingDefinition } from '@kbn/core/server'; export const alertMappings: SavedObjectsTypeMappingDefinition = { + dynamic: false, properties: { enabled: { type: 'boolean', @@ -59,18 +60,18 @@ export const alertMappings: SavedObjectsTypeMappingDefinition = { }, frequency: { properties: { - summary: { - index: false, - type: 'boolean', - }, - notifyWhen: { - index: false, - type: 'keyword', - }, - throttle: { - index: false, - type: 'keyword', - }, + // summary: { + // index: false, + // type: 'boolean', + // }, + // notifyWhen: { + // index: false, + // type: 'keyword', + // }, + // throttle: { + // index: false, + // type: 'keyword', + // }, }, }, }, diff --git a/x-pack/plugins/alerting/server/saved_objects/rules_settings_mappings.ts b/x-pack/plugins/alerting/server/saved_objects/rules_settings_mappings.ts index d20567edc2832..485e9a1c70e4e 100644 --- a/x-pack/plugins/alerting/server/saved_objects/rules_settings_mappings.ts +++ b/x-pack/plugins/alerting/server/saved_objects/rules_settings_mappings.ts @@ -8,37 +8,38 @@ import { SavedObjectsTypeMappingDefinition } from '@kbn/core/server'; export const rulesSettingsMappings: SavedObjectsTypeMappingDefinition = { + dynamic: false, properties: { flapping: { properties: { - enabled: { - type: 'boolean', - index: false, - }, - lookBackWindow: { - type: 'long', - index: false, - }, - statusChangeThreshold: { - type: 'long', - index: false, - }, - createdBy: { - type: 'keyword', - index: false, - }, - updatedBy: { - type: 'keyword', - index: false, - }, - createdAt: { - type: 'date', - index: false, - }, - updatedAt: { - type: 'date', - index: false, - }, + // enabled: { + // type: 'boolean', + // index: false, + // }, + // lookBackWindow: { + // type: 'long', + // index: false, + // }, + // statusChangeThreshold: { + // type: 'long', + // index: false, + // }, + // createdBy: { + // type: 'keyword', + // index: false, + // }, + // updatedBy: { + // type: 'keyword', + // index: false, + // }, + // createdAt: { + // type: 'date', + // index: false, + // }, + // updatedAt: { + // type: 'date', + // index: false, + // }, }, }, }, diff --git a/x-pack/plugins/apm/server/saved_objects/apm_server_settings.ts b/x-pack/plugins/apm/server/saved_objects/apm_server_settings.ts index 4515903d306f8..027743c43ca92 100644 --- a/x-pack/plugins/apm/server/saved_objects/apm_server_settings.ts +++ b/x-pack/plugins/apm/server/saved_objects/apm_server_settings.ts @@ -14,11 +14,12 @@ export const apmServerSettings: SavedObjectsType = { hidden: false, namespaceType: 'agnostic', mappings: { + dynamic: false, properties: { - schemaJson: { - type: 'text', - index: false, - }, + // schemaJson: { + // type: 'text', + // index: false, + // }, }, }, management: { diff --git a/x-pack/plugins/fleet/server/saved_objects/index.ts b/x-pack/plugins/fleet/server/saved_objects/index.ts index 2b1732142686b..e2de0bbbfea63 100644 --- a/x-pack/plugins/fleet/server/saved_objects/index.ts +++ b/x-pack/plugins/fleet/server/saved_objects/index.ts @@ -74,7 +74,7 @@ const getSavedObjectTypes = (): { [key: string]: SavedObjectsType } => ({ mappings: { properties: { fleet_server_hosts: { type: 'keyword' }, - has_seen_add_data_notice: { type: 'boolean', index: false }, + // has_seen_add_data_notice: { type: 'boolean', index: false }, prerelease_integrations_enabled: { type: 'boolean' }, }, }, @@ -106,7 +106,7 @@ const getSavedObjectTypes = (): { [key: string]: SavedObjectsType } => ({ updated_at: { type: 'date' }, updated_by: { type: 'keyword' }, revision: { type: 'integer' }, - monitoring_enabled: { type: 'keyword', index: false }, + // monitoring_enabled: { type: 'keyword', index: false }, is_preconfigured: { type: 'keyword' }, data_output_id: { type: 'keyword' }, monitoring_output_id: { type: 'keyword' }, @@ -136,17 +136,17 @@ const getSavedObjectTypes = (): { [key: string]: SavedObjectsType } => ({ }, mappings: { properties: { - output_id: { type: 'keyword', index: false }, + // output_id: { type: 'keyword', index: false }, name: { type: 'keyword' }, type: { type: 'keyword' }, is_default: { type: 'boolean' }, is_default_monitoring: { type: 'boolean' }, hosts: { type: 'keyword' }, - ca_sha256: { type: 'keyword', index: false }, - ca_trusted_fingerprint: { type: 'keyword', index: false }, + // ca_sha256: { type: 'keyword', index: false }, + // ca_trusted_fingerprint: { type: 'keyword', index: false }, config: { type: 'flattened' }, config_yaml: { type: 'text' }, - is_preconfigured: { type: 'boolean', index: false }, + // is_preconfigured: { type: 'boolean', index: false }, ssl: { type: 'binary' }, proxy_id: { type: 'keyword' }, shipper: { @@ -222,11 +222,12 @@ const getSavedObjectTypes = (): { [key: string]: SavedObjectsType } => ({ importableAndExportable: false, }, mappings: { + dynamic: false, properties: { name: { type: 'keyword' }, version: { type: 'keyword' }, internal: { type: 'boolean' }, - keep_policies_up_to_date: { type: 'boolean', index: false }, + // keep_policies_up_to_date: { type: 'boolean', index: false }, es_index_patterns: { dynamic: false, properties: {}, @@ -295,7 +296,7 @@ const getSavedObjectTypes = (): { [key: string]: SavedObjectsType } => ({ install_source: { type: 'keyword' }, asset_path: { type: 'keyword' }, media_type: { type: 'keyword' }, - data_utf8: { type: 'text', index: false }, + // data_utf8: { type: 'text', index: false }, data_base64: { type: 'binary' }, }, }, @@ -322,7 +323,7 @@ const getSavedObjectTypes = (): { [key: string]: SavedObjectsType } => ({ }, mappings: { properties: { - source_id: { type: 'keyword', index: false }, + // source_id: { type: 'keyword', index: false }, name: { type: 'keyword' }, is_default: { type: 'boolean' }, host: { type: 'keyword' }, @@ -340,7 +341,7 @@ const getSavedObjectTypes = (): { [key: string]: SavedObjectsType } => ({ properties: { name: { type: 'keyword' }, is_default: { type: 'boolean' }, - host_urls: { type: 'keyword', index: false }, + // host_urls: { type: 'keyword', index: false }, is_preconfigured: { type: 'boolean' }, proxy_id: { type: 'keyword' }, }, @@ -356,11 +357,11 @@ const getSavedObjectTypes = (): { [key: string]: SavedObjectsType } => ({ mappings: { properties: { name: { type: 'keyword' }, - url: { type: 'keyword', index: false }, - proxy_headers: { type: 'text', index: false }, - certificate_authorities: { type: 'keyword', index: false }, - certificate: { type: 'keyword', index: false }, - certificate_key: { type: 'keyword', index: false }, + // url: { type: 'keyword', index: false }, + // proxy_headers: { type: 'text', index: false }, + // certificate_authorities: { type: 'keyword', index: false }, + // certificate: { type: 'keyword', index: false }, + // certificate_key: { type: 'keyword', index: false }, is_preconfigured: { type: 'boolean' }, }, }, diff --git a/x-pack/plugins/graph/server/saved_objects/graph_workspace.ts b/x-pack/plugins/graph/server/saved_objects/graph_workspace.ts index 4a53bba847543..36148821b3393 100644 --- a/x-pack/plugins/graph/server/saved_objects/graph_workspace.ts +++ b/x-pack/plugins/graph/server/saved_objects/graph_workspace.ts @@ -29,6 +29,7 @@ export const graphWorkspace: SavedObjectsType = { }, migrations: graphMigrations, mappings: { + dynamic: false, properties: { description: { type: 'text', @@ -55,10 +56,10 @@ export const graphWorkspace: SavedObjectsType = { wsState: { type: 'text', }, - legacyIndexPatternRef: { - type: 'text', - index: false, - }, + // legacyIndexPatternRef: { + // type: 'text', + // index: false, + // }, }, }, }; diff --git a/x-pack/plugins/lens/server/saved_objects.ts b/x-pack/plugins/lens/server/saved_objects.ts index b5afa19c31119..3ffc96ab74f89 100644 --- a/x-pack/plugins/lens/server/saved_objects.ts +++ b/x-pack/plugins/lens/server/saved_objects.ts @@ -39,6 +39,7 @@ export function setupSavedObjects( customVisualizationMigrations ), mappings: { + dynamic: false, properties: { title: { type: 'text', @@ -52,11 +53,11 @@ export function setupSavedObjects( state: { type: 'flattened', }, - expression: { - index: false, - doc_values: false, - type: 'keyword', - }, + // expression: { + // index: false, + // doc_values: false, + // type: 'keyword', + // }, }, }, }); diff --git a/x-pack/plugins/profiling/server/lib/setup/steps/get_create_indices_step.ts b/x-pack/plugins/profiling/server/lib/setup/steps/get_create_indices_step.ts index 30d5c49a50c49..3836e2c346ec9 100644 --- a/x-pack/plugins/profiling/server/lib/setup/steps/get_create_indices_step.ts +++ b/x-pack/plugins/profiling/server/lib/setup/steps/get_create_indices_step.ts @@ -7,11 +7,6 @@ import { ProfilingSetupStep, ProfilingSetupStepFactoryOptions } from '../types'; import { catchResourceAlreadyExistsException } from './catch_resource_already_exists_exception'; -import profilingReturnpadsPrivateMapping from './mappings/profiling_returnpads_private.json'; -import profilingSymbolsPrivateMapping from './mappings/profiling_symbols_private.json'; -import profilingSymbolsMapping from './mappings/profiling_symbols.json'; -import profilingSQLeafframesMapping from './mappings/profiling_sq_leafframes.json'; -import profilingSQExecutablesMapping from './mappings/profiling_sq_executables.json'; const RETURNPADS_PRIVATE_INDEX = 'profiling-returnpads-private'; const SQ_EXECUTABLES_INDEX = 'profiling-sq-executables'; @@ -123,31 +118,191 @@ export function getCreateIndicesStep({ esClient.indices .create({ index: SQ_EXECUTABLES_INDEX, - ...profilingSQExecutablesMapping, + settings: { + index: { + refresh_interval: '10s', + }, + }, + mappings: { + _source: { + mode: 'synthetic', + } as MappingSourceField, + dynamic: false, + properties: { + 'ecs.version': { + type: 'keyword', + index: true, + }, + // 'Executable.file.id': { + // type: 'keyword', + // index: false, + // }, + 'Time.created': { + type: 'date', + index: true, + }, + 'Symbolization.time.next': { + type: 'date', + index: true, + }, + 'Symbolization.retries': { + type: 'short', + index: true, + }, + }, + }, }) .catch(catchResourceAlreadyExistsException), esClient.indices .create({ - index: SQ_LEAFFRAMES_INDEX, - ...profilingSQLeafframesMapping, + index: LEAFFRAMES_INDEX, + settings: { + index: { + refresh_interval: '10s', + }, + }, + mappings: { + _source: { + mode: 'synthetic', + } as MappingSourceField, + dynamic: false, + properties: { + 'ecs.version': { + type: 'keyword', + index: true, + }, + // 'Stacktrace.frame.id': { + // type: 'keyword', + // index: false, + // }, + 'Time.created': { + type: 'date', + index: true, + }, + 'Symbolization.time.next': { + type: 'date', + index: true, + }, + 'Symbolization.retries': { + type: 'short', + index: true, + }, + }, + }, }) .catch(catchResourceAlreadyExistsException), esClient.indices .create({ index: SYMBOLS_INDEX, - ...profilingSymbolsMapping, - }) - .catch(catchResourceAlreadyExistsException), - esClient.indices - .create({ - index: SYMBOLS_PRIVATE_INDEX, - ...profilingSymbolsPrivateMapping, - }) - .catch(catchResourceAlreadyExistsException), - esClient.indices - .create({ - index: RETURNPADS_PRIVATE_INDEX, - ...profilingReturnpadsPrivateMapping, + settings: { + index: { + number_of_shards: '16', + refresh_interval: '10s', + }, + }, + mappings: { + _source: { + enabled: true, + } as MappingSourceField, + dynamic: false, + properties: { + 'ecs.version': { + type: 'keyword', + index: true, + doc_values: false, + store: false, + }, + // 'Symbol.function.name': { + // // name of the function + // type: 'keyword', + // index: false, + // doc_values: false, + // store: false, + // }, + // 'Symbol.file.name': { + // // file path + // type: 'keyword', + // index: false, + // doc_values: false, + // store: false, + // }, + // 'Symbol.call.file.name': { + // // (for inlined functions) file path where inline function was called + // type: 'keyword', + // index: false, + // doc_values: false, + // store: false, + // }, + // 'Symbol.call.line': { + // // (for inlined functions) line where inline function was called + // type: 'integer', + // index: false, + // doc_values: false, + // store: false, + // }, + // 'Symbol.function.line': { + // // function start line (only available from DWARF). Currently unused. + // type: 'integer', + // index: false, + // doc_values: false, + // store: false, + // }, + // 'Symbol.depth': { + // // inline depth + // type: 'integer', + // index: false, + // doc_values: false, + // store: false, + // }, + // // pairs of (32bit PC offset, 32bit line number) followed by 64bit PC range base at the end. + // // To find line number for a given PC: find lowest offset such as offsetBase+PC >= offset, then read corresponding line number. + // // offsetBase could seemingly be available from exec_pc_range (it's the first value of the pair), but it's not the case. + // // Ranges are stored as points, which cannot be retrieve when disabling _source. + // // See https://www.elastic.co/guide/en/elasticsearch/reference/current/point.html . + // 'Symbol.linetable.base': { + // // Linetable: base for offsets (64bit PC range base) + // type: 'unsigned_long', + // index: false, + // doc_values: false, + // store: false, + // }, + // 'Symbol.linetable.length': { + // // Linetable: length of range (PC range is [base, base+length)) + // type: 'unsigned_long', + // index: false, + // doc_values: false, + // store: false, + // }, + // 'Symbol.linetable.offsets': { + // // Linetable: concatenated offsets (each value is ULEB128encoded) + // type: 'keyword', + // index: false, + // doc_values: false, + // store: false, + // }, + // 'Symbol.linetable.lines': { + // // Linetable: concatenated lines (each value is ULEB128 encoded) + // type: 'keyword', + // index: false, + // doc_values: false, + // store: false, + // }, + 'Symbol.file.id': { + // fileID. used for deletion and Symbol.exec.pcrange collision handling on symbolization + type: 'keyword', + index: true, + doc_values: false, + store: false, + }, + 'Symbol.exec.pcrange': { + // PC ranges [begin, end) + type: 'ip_range', + index: true, + doc_values: false, + store: false, + }, + }, + }, }) .catch(catchResourceAlreadyExistsException), esClient.indices diff --git a/x-pack/plugins/security_solution/server/endpoint/lib/artifacts/saved_object_mappings.ts b/x-pack/plugins/security_solution/server/endpoint/lib/artifacts/saved_object_mappings.ts index 9ce550859da4d..4e236c555a750 100644 --- a/x-pack/plugins/security_solution/server/endpoint/lib/artifacts/saved_object_mappings.ts +++ b/x-pack/plugins/security_solution/server/endpoint/lib/artifacts/saved_object_mappings.ts @@ -14,37 +14,38 @@ export const exceptionsArtifactSavedObjectType = ArtifactConstants.SAVED_OBJECT_ export const manifestSavedObjectType = ManifestConstants.SAVED_OBJECT_TYPE; export const exceptionsArtifactSavedObjectMappings: SavedObjectsType['mappings'] = { + dynamic: false, properties: { identifier: { type: 'keyword', }, - compressionAlgorithm: { - type: 'keyword', - index: false, - }, - encryptionAlgorithm: { - type: 'keyword', - index: false, - }, - encodedSha256: { - type: 'keyword', - }, - encodedSize: { - type: 'long', - index: false, - }, - decodedSha256: { - type: 'keyword', - index: false, - }, - decodedSize: { - type: 'long', - index: false, - }, - created: { - type: 'date', - index: false, - }, + // compressionAlgorithm: { + // type: 'keyword', + // index: false, + // }, + // encryptionAlgorithm: { + // type: 'keyword', + // index: false, + // }, + // encodedSha256: { + // type: 'keyword', + // }, + // encodedSize: { + // type: 'long', + // index: false, + // }, + // decodedSha256: { + // type: 'keyword', + // index: false, + // }, + // decodedSize: { + // type: 'long', + // index: false, + // }, + // created: { + // type: 'date', + // index: false, + // }, body: { type: 'binary', }, @@ -52,29 +53,30 @@ export const exceptionsArtifactSavedObjectMappings: SavedObjectsType['mappings'] }; export const manifestSavedObjectMappings: SavedObjectsType['mappings'] = { + dynamic: false, properties: { - created: { - type: 'date', - index: false, - }, + // created: { + // type: 'date', + // index: false, + // }, schemaVersion: { type: 'keyword', }, - semanticVersion: { - type: 'keyword', - index: false, - }, + // semanticVersion: { + // type: 'keyword', + // index: false, + // }, artifacts: { type: 'nested', properties: { - policyId: { - type: 'keyword', - index: false, - }, - artifactId: { - type: 'keyword', - index: false, - }, + // policyId: { + // type: 'keyword', + // index: false, + // }, + // artifactId: { + // type: 'keyword', + // index: false, + // }, }, }, }, diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/migrations/saved_objects.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/migrations/saved_objects.ts index 8a168d3c43ba0..952d3aa528a4c 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/migrations/saved_objects.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/migrations/saved_objects.ts @@ -10,45 +10,46 @@ import type { SavedObjectsType } from '@kbn/core/server'; export const signalsMigrationType = 'security-solution-signals-migration'; export const signalsMigrationMappings: SavedObjectsType['mappings'] = { + dynamic: false, properties: { sourceIndex: { type: 'keyword', }, - destinationIndex: { - type: 'keyword', - index: false, - }, + // destinationIndex: { + // type: 'keyword', + // index: false, + // }, version: { type: 'long', }, - error: { - type: 'text', - index: false, - }, - taskId: { - type: 'keyword', - index: false, - }, - status: { - type: 'keyword', - index: false, - }, - created: { - type: 'date', - index: false, - }, - createdBy: { - type: 'text', - index: false, - }, - updated: { - type: 'date', - index: false, - }, - updatedBy: { - type: 'text', - index: false, - }, + // error: { + // type: 'text', + // index: false, + // }, + // taskId: { + // type: 'keyword', + // index: false, + // }, + // status: { + // type: 'keyword', + // index: false, + // }, + // created: { + // type: 'date', + // index: false, + // }, + // createdBy: { + // type: 'text', + // index: false, + // }, + // updated: { + // type: 'date', + // index: false, + // }, + // updatedBy: { + // type: 'text', + // index: false, + // }, }, }; diff --git a/x-pack/plugins/spaces/server/saved_objects/mappings.ts b/x-pack/plugins/spaces/server/saved_objects/mappings.ts index 82a134bfdbf62..f584ff943616e 100644 --- a/x-pack/plugins/spaces/server/saved_objects/mappings.ts +++ b/x-pack/plugins/spaces/server/saved_objects/mappings.ts @@ -8,6 +8,7 @@ import { deepFreeze } from '@kbn/std'; export const SpacesSavedObjectMappings = deepFreeze({ + dynamic: false, properties: { name: { type: 'text', @@ -30,10 +31,10 @@ export const SpacesSavedObjectMappings = deepFreeze({ disabledFeatures: { type: 'keyword', }, - imageUrl: { - type: 'text', - index: false, - }, + // imageUrl: { + // type: 'text', + // index: false, + // }, _reserved: { type: 'boolean', },