diff --git a/.eslintignore b/.eslintignore
index 7f3e3ef597cbbc..1d58aff7c6a828 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -13,6 +13,7 @@
/x-pack/build
node_modules
target
+snapshots.js
!/.eslintrc.js
@@ -22,7 +23,6 @@ target
/src/plugins/data/common/es_query/kuery/ast/_generated_/**
/src/plugins/vis_type_timelion/public/_generated_/**
/x-pack/legacy/plugins/**/__tests__/fixtures/**
-/x-pack/plugins/apm/e2e/**/snapshots.js
/x-pack/plugins/apm/e2e/tmp/*
/x-pack/plugins/canvas/canvas_plugin
/x-pack/plugins/canvas/shareable_runtime/build
diff --git a/.eslintrc.js b/.eslintrc.js
index 24ae50791d91df..5c2a2817eae53f 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -447,6 +447,7 @@ module.exports = {
{
devDependencies: false,
peerDependencies: true,
+ packageDir: '.',
},
],
},
@@ -478,6 +479,7 @@ module.exports = {
{
devDependencies: true,
peerDependencies: true,
+ packageDir: '.',
},
],
},
@@ -732,22 +734,6 @@ module.exports = {
},
},
- /**
- * ML overrides
- */
- {
- files: ['x-pack/plugins/ml/**/*.js'],
- rules: {
- 'no-shadow': 'error',
- 'import/no-extraneous-dependencies': [
- 'error',
- {
- packageDir: './x-pack',
- },
- ],
- },
- },
-
/**
* Security Solution overrides
*/
@@ -1149,16 +1135,11 @@ module.exports = {
{
devDependencies: true,
peerDependencies: true,
+ packageDir: '.',
},
],
},
},
- {
- files: ['x-pack/plugins/canvas/storybook/**'],
- rules: {
- 'import/no-extraneous-dependencies': 0,
- },
- },
{
files: ['x-pack/plugins/canvas/canvas_plugin_src/**/*.js'],
globals: { canvas: true, $: true },
@@ -1237,5 +1218,21 @@ module.exports = {
],
},
},
+
+ /**
+ * Single package.json rules, it tells eslint to ignore the child package.json files
+ * and look for dependencies declarations in the single and root level package.json
+ */
+ {
+ files: ['**/*.{js,mjs,ts,tsx}'],
+ rules: {
+ 'import/no-extraneous-dependencies': [
+ 'error',
+ {
+ packageDir: '.',
+ },
+ ],
+ },
+ },
],
};
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index c179dbadac533b..915f0f799b2108 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -196,12 +196,15 @@
# Platform
/src/core/ @elastic/kibana-platform
+/src/plugins/saved_objects_tagging_oss @elastic/kibana-platform
/config/kibana.yml @elastic/kibana-platform
/x-pack/plugins/features/ @elastic/kibana-platform
/x-pack/plugins/licensing/ @elastic/kibana-platform
/x-pack/plugins/global_search/ @elastic/kibana-platform
/x-pack/plugins/cloud/ @elastic/kibana-platform
+/x-pack/plugins/saved_objects_tagging/ @elastic/kibana-platform
/x-pack/test/saved_objects_field_count/ @elastic/kibana-platform
+/x-pack/test/saved_object_tagging/ @elastic/kibana-platform
/packages/kbn-config-schema/ @elastic/kibana-platform
/packages/kbn-std/ @elastic/kibana-platform
/src/legacy/server/config/ @elastic/kibana-platform
diff --git a/.gitignore b/.gitignore
index 1bbd38debbf0f8..0d9529eb65e54a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -56,6 +56,8 @@ npm-debug.log*
# apm plugin
/x-pack/plugins/apm/tsconfig.json
apm.tsconfig.json
+## @cypress/snapshot from apm plugin
+snapshots.js
# release notes script output
report.csv
diff --git a/.yarnrc b/.yarnrc
deleted file mode 100644
index b551f7d7ba4381..00000000000000
--- a/.yarnrc
+++ /dev/null
@@ -1 +0,0 @@
---ignore-workspace-root-check true
diff --git a/NOTICE.txt b/NOTICE.txt
index 0504b7f7d6db2a..bf3cb4aa4ac87f 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -26,6 +26,9 @@ This module was heavily inspired by the externals plugin that ships with webpack
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
+---
+This product has relied on ASTExplorer that is licensed under MIT.
+
---
This product includes code that is based on Ace editor, which was available
under a "BSD" license.
diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc
index b67a4c95fd0ad0..9a32f3b3adb3c2 100644
--- a/docs/developer/plugin-list.asciidoc
+++ b/docs/developer/plugin-list.asciidoc
@@ -164,6 +164,11 @@ Content is fetched from the remote (https://feeds.elastic.co and https://feeds-s
|WARNING: Missing README.
+|{kib-repo}blob/{branch}/src/plugins/saved_objects_tagging_oss/README.md[savedObjectsTaggingOss]
+|Bridge plugin for consumption of the saved object tagging feature from
+oss plugins.
+
+
|{kib-repo}blob/{branch}/src/plugins/security_oss/README.md[securityOss]
|securityOss is responsible for educating users about Elastic's free security features,
so they can properly protect the data within their clusters.
@@ -466,6 +471,10 @@ Elastic.
|Welcome to the Kibana rollup plugin! This plugin provides Kibana support for Elasticsearch's rollup feature. Please refer to the Elasticsearch documentation to understand rollup indices and how to create rollup jobs.
+|{kib-repo}blob/{branch}/x-pack/plugins/saved_objects_tagging/README.md[savedObjectsTagging]
+|Add tagging capability to saved objects
+
+
|{kib-repo}blob/{branch}/x-pack/plugins/searchprofiler/README.md[searchprofiler]
|The search profiler consumes the Profile API
by sending a search API with profile: true enabled in the request body. The response contains
diff --git a/docs/development/core/public/kibana-plugin-core-public.md b/docs/development/core/public/kibana-plugin-core-public.md
index 85ef00d2714159..b8b1bdcdee3be3 100644
--- a/docs/development/core/public/kibana-plugin-core-public.md
+++ b/docs/development/core/public/kibana-plugin-core-public.md
@@ -98,6 +98,7 @@ The plugin integrates with the core system via lifecycle events: `setup`
| [SavedObjectsBulkUpdateOptions](./kibana-plugin-core-public.savedobjectsbulkupdateoptions.md) | |
| [SavedObjectsCreateOptions](./kibana-plugin-core-public.savedobjectscreateoptions.md) | |
| [SavedObjectsFindOptions](./kibana-plugin-core-public.savedobjectsfindoptions.md) | |
+| [SavedObjectsFindOptionsReference](./kibana-plugin-core-public.savedobjectsfindoptionsreference.md) | |
| [SavedObjectsFindResponsePublic](./kibana-plugin-core-public.savedobjectsfindresponsepublic.md) | Return type of the Saved Objects find()
method.\*Note\*: this type is different between the Public and Server Saved Objects clients. |
| [SavedObjectsImportAmbiguousConflictError](./kibana-plugin-core-public.savedobjectsimportambiguousconflicterror.md) | Represents a failure to import due to a conflict, which can be resolved in different ways with an overwrite. |
| [SavedObjectsImportConflictError](./kibana-plugin-core-public.savedobjectsimportconflicterror.md) | Represents a failure to import due to a conflict. |
diff --git a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.defaultsearchoperator.md b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.defaultsearchoperator.md
index 8cf717365db393..f1c2fd08a21f14 100644
--- a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.defaultsearchoperator.md
+++ b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.defaultsearchoperator.md
@@ -4,6 +4,8 @@
## SavedObjectsFindOptions.defaultSearchOperator property
+The search operator to use with the provided filter. Defaults to `OR`
+
Signature:
```typescript
diff --git a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.hasreference.md b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.hasreference.md
index 98f594b63f0245..25ce8fa7b6018e 100644
--- a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.hasreference.md
+++ b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.hasreference.md
@@ -4,11 +4,10 @@
## SavedObjectsFindOptions.hasReference property
+Search for documents having a reference to the specified objects. Use `hasReferenceOperator` to specify the operator to use when searching for multiple references.
+
Signature:
```typescript
-hasReference?: {
- type: string;
- id: string;
- };
+hasReference?: SavedObjectsFindOptionsReference | SavedObjectsFindOptionsReference[];
```
diff --git a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.hasreferenceoperator.md b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.hasreferenceoperator.md
new file mode 100644
index 00000000000000..3681d1c9d34d9a
--- /dev/null
+++ b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.hasreferenceoperator.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [SavedObjectsFindOptions](./kibana-plugin-core-public.savedobjectsfindoptions.md) > [hasReferenceOperator](./kibana-plugin-core-public.savedobjectsfindoptions.hasreferenceoperator.md)
+
+## SavedObjectsFindOptions.hasReferenceOperator property
+
+The operator to use when searching by multiple references using the `hasReference` option. Defaults to `OR`
+
+Signature:
+
+```typescript
+hasReferenceOperator?: 'AND' | 'OR';
+```
diff --git a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.md b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.md
index 470a41f30afbfe..8bd87c2f6ea35f 100644
--- a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.md
+++ b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.md
@@ -15,10 +15,11 @@ export interface SavedObjectsFindOptions
| Property | Type | Description |
| --- | --- | --- |
-| [defaultSearchOperator](./kibana-plugin-core-public.savedobjectsfindoptions.defaultsearchoperator.md) | 'AND' | 'OR'
| |
+| [defaultSearchOperator](./kibana-plugin-core-public.savedobjectsfindoptions.defaultsearchoperator.md) | 'AND' | 'OR'
| The search operator to use with the provided filter. Defaults to OR
|
| [fields](./kibana-plugin-core-public.savedobjectsfindoptions.fields.md) | string[]
| An array of fields to include in the results |
| [filter](./kibana-plugin-core-public.savedobjectsfindoptions.filter.md) | string | KueryNode
| |
-| [hasReference](./kibana-plugin-core-public.savedobjectsfindoptions.hasreference.md) | {
type: string;
id: string;
}
| |
+| [hasReference](./kibana-plugin-core-public.savedobjectsfindoptions.hasreference.md) | SavedObjectsFindOptionsReference | SavedObjectsFindOptionsReference[]
| Search for documents having a reference to the specified objects. Use hasReferenceOperator
to specify the operator to use when searching for multiple references. |
+| [hasReferenceOperator](./kibana-plugin-core-public.savedobjectsfindoptions.hasreferenceoperator.md) | 'AND' | 'OR'
| The operator to use when searching by multiple references using the hasReference
option. Defaults to OR
|
| [namespaces](./kibana-plugin-core-public.savedobjectsfindoptions.namespaces.md) | string[]
| |
| [page](./kibana-plugin-core-public.savedobjectsfindoptions.page.md) | number
| |
| [perPage](./kibana-plugin-core-public.savedobjectsfindoptions.perpage.md) | number
| |
diff --git a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptionsreference.id.md b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptionsreference.id.md
new file mode 100644
index 00000000000000..5e4c8dd982a0fd
--- /dev/null
+++ b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptionsreference.id.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [SavedObjectsFindOptionsReference](./kibana-plugin-core-public.savedobjectsfindoptionsreference.md) > [id](./kibana-plugin-core-public.savedobjectsfindoptionsreference.id.md)
+
+## SavedObjectsFindOptionsReference.id property
+
+Signature:
+
+```typescript
+id: string;
+```
diff --git a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptionsreference.md b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptionsreference.md
new file mode 100644
index 00000000000000..cdfefd01e6f83d
--- /dev/null
+++ b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptionsreference.md
@@ -0,0 +1,20 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [SavedObjectsFindOptionsReference](./kibana-plugin-core-public.savedobjectsfindoptionsreference.md)
+
+## SavedObjectsFindOptionsReference interface
+
+
+Signature:
+
+```typescript
+export interface SavedObjectsFindOptionsReference
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [id](./kibana-plugin-core-public.savedobjectsfindoptionsreference.id.md) | string
| |
+| [type](./kibana-plugin-core-public.savedobjectsfindoptionsreference.type.md) | string
| |
+
diff --git a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptionsreference.type.md b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptionsreference.type.md
new file mode 100644
index 00000000000000..3779bfd204a4b9
--- /dev/null
+++ b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptionsreference.type.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [SavedObjectsFindOptionsReference](./kibana-plugin-core-public.savedobjectsfindoptionsreference.md) > [type](./kibana-plugin-core-public.savedobjectsfindoptionsreference.type.md)
+
+## SavedObjectsFindOptionsReference.type property
+
+Signature:
+
+```typescript
+type: string;
+```
diff --git a/docs/development/core/server/kibana-plugin-core-server.exportsavedobjectstostream.md b/docs/development/core/server/kibana-plugin-core-server.exportsavedobjectstostream.md
index b17984400c248c..f8b5eb3b353932 100644
--- a/docs/development/core/server/kibana-plugin-core-server.exportsavedobjectstostream.md
+++ b/docs/development/core/server/kibana-plugin-core-server.exportsavedobjectstostream.md
@@ -9,14 +9,14 @@ Generates sorted saved object stream to be used for export. See the [options](./
Signature:
```typescript
-export declare function exportSavedObjectsToStream({ types, objects, search, savedObjectsClient, exportSizeLimit, includeReferencesDeep, excludeExportDetails, namespace, }: SavedObjectsExportOptions): Promise;
+export declare function exportSavedObjectsToStream({ types, hasReference, objects, search, savedObjectsClient, exportSizeLimit, includeReferencesDeep, excludeExportDetails, namespace, }: SavedObjectsExportOptions): Promise;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| { types, objects, search, savedObjectsClient, exportSizeLimit, includeReferencesDeep, excludeExportDetails, namespace, } | SavedObjectsExportOptions
| |
+| { types, hasReference, objects, search, savedObjectsClient, exportSizeLimit, includeReferencesDeep, excludeExportDetails, namespace, } | SavedObjectsExportOptions
| |
Returns:
diff --git a/docs/development/core/server/kibana-plugin-core-server.md b/docs/development/core/server/kibana-plugin-core-server.md
index 29f52207949189..68f5e729155567 100644
--- a/docs/development/core/server/kibana-plugin-core-server.md
+++ b/docs/development/core/server/kibana-plugin-core-server.md
@@ -42,7 +42,7 @@ The plugin integrates with the core system via lifecycle events: `setup`
| Function | Description |
| --- | --- |
-| [exportSavedObjectsToStream({ types, objects, search, savedObjectsClient, exportSizeLimit, includeReferencesDeep, excludeExportDetails, namespace, })](./kibana-plugin-core-server.exportsavedobjectstostream.md) | Generates sorted saved object stream to be used for export. See the [options](./kibana-plugin-core-server.savedobjectsexportoptions.md) for more detailed information. |
+| [exportSavedObjectsToStream({ types, hasReference, objects, search, savedObjectsClient, exportSizeLimit, includeReferencesDeep, excludeExportDetails, namespace, })](./kibana-plugin-core-server.exportsavedobjectstostream.md) | Generates sorted saved object stream to be used for export. See the [options](./kibana-plugin-core-server.savedobjectsexportoptions.md) for more detailed information. |
| [importSavedObjectsFromStream({ readStream, objectLimit, overwrite, createNewCopies, savedObjectsClient, typeRegistry, namespace, })](./kibana-plugin-core-server.importsavedobjectsfromstream.md) | Import saved objects from given stream. See the [options](./kibana-plugin-core-server.savedobjectsimportoptions.md) for more detailed information. |
| [resolveSavedObjectsImportErrors({ readStream, objectLimit, retries, savedObjectsClient, typeRegistry, namespace, createNewCopies, })](./kibana-plugin-core-server.resolvesavedobjectsimporterrors.md) | Resolve and return saved object import errors. See the [options](./kibana-plugin-core-server.savedobjectsresolveimporterrorsoptions.md) for more detailed informations. |
@@ -163,6 +163,7 @@ The plugin integrates with the core system via lifecycle events: `setup`
| [SavedObjectsExportOptions](./kibana-plugin-core-server.savedobjectsexportoptions.md) | Options controlling the export operation. |
| [SavedObjectsExportResultDetails](./kibana-plugin-core-server.savedobjectsexportresultdetails.md) | Structure of the export result details entry |
| [SavedObjectsFindOptions](./kibana-plugin-core-server.savedobjectsfindoptions.md) | |
+| [SavedObjectsFindOptionsReference](./kibana-plugin-core-server.savedobjectsfindoptionsreference.md) | |
| [SavedObjectsFindResponse](./kibana-plugin-core-server.savedobjectsfindresponse.md) | Return type of the Saved Objects find()
method.\*Note\*: this type is different between the Public and Server Saved Objects clients. |
| [SavedObjectsFindResult](./kibana-plugin-core-server.savedobjectsfindresult.md) | |
| [SavedObjectsImportAmbiguousConflictError](./kibana-plugin-core-server.savedobjectsimportambiguousconflicterror.md) | Represents a failure to import due to a conflict, which can be resolved in different ways with an overwrite. |
@@ -180,6 +181,8 @@ The plugin integrates with the core system via lifecycle events: `setup`
| [SavedObjectsMigrationLogger](./kibana-plugin-core-server.savedobjectsmigrationlogger.md) | |
| [SavedObjectsMigrationVersion](./kibana-plugin-core-server.savedobjectsmigrationversion.md) | Information about the migrations that have been applied to this SavedObject. When Kibana starts up, KibanaMigrator detects outdated documents and migrates them based on this value. For each migration that has been applied, the plugin's name is used as a key and the latest migration version as the value. |
| [SavedObjectsRawDoc](./kibana-plugin-core-server.savedobjectsrawdoc.md) | A raw document as represented directly in the saved object index. |
+| [SavedObjectsRemoveReferencesToOptions](./kibana-plugin-core-server.savedobjectsremovereferencestooptions.md) | |
+| [SavedObjectsRemoveReferencesToResponse](./kibana-plugin-core-server.savedobjectsremovereferencestoresponse.md) | |
| [SavedObjectsRepositoryFactory](./kibana-plugin-core-server.savedobjectsrepositoryfactory.md) | Factory provided when invoking a [client factory provider](./kibana-plugin-core-server.savedobjectsclientfactoryprovider.md) See [SavedObjectsServiceSetup.setClientFactoryProvider](./kibana-plugin-core-server.savedobjectsservicesetup.setclientfactoryprovider.md) |
| [SavedObjectsResolveImportErrorsOptions](./kibana-plugin-core-server.savedobjectsresolveimporterrorsoptions.md) | Options to control the "resolve import" operation. |
| [SavedObjectsServiceSetup](./kibana-plugin-core-server.savedobjectsservicesetup.md) | Saved Objects is Kibana's data persistence mechanism allowing plugins to use Elasticsearch for storing and querying state. The SavedObjectsServiceSetup API exposes methods for registering Saved Object types, creating and registering Saved Object client wrappers and factories. |
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsclient.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsclient.md
index 7c1273e63d24bd..7fb34631c736e4 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectsclient.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsclient.md
@@ -35,5 +35,6 @@ The constructor for this class is marked as internal. Third-party code should no
| [deleteFromNamespaces(type, id, namespaces, options)](./kibana-plugin-core-server.savedobjectsclient.deletefromnamespaces.md) | | Removes namespaces from a SavedObject |
| [find(options)](./kibana-plugin-core-server.savedobjectsclient.find.md) | | Find all SavedObjects matching the search query |
| [get(type, id, options)](./kibana-plugin-core-server.savedobjectsclient.get.md) | | Retrieves a single object |
+| [removeReferencesTo(type, id, options)](./kibana-plugin-core-server.savedobjectsclient.removereferencesto.md) | | Updates all objects containing a reference to the given {type, id} tuple to remove the said reference. |
| [update(type, id, attributes, options)](./kibana-plugin-core-server.savedobjectsclient.update.md) | | Updates an SavedObject |
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsclient.removereferencesto.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsclient.removereferencesto.md
new file mode 100644
index 00000000000000..002992a17c3134
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsclient.removereferencesto.md
@@ -0,0 +1,26 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsClient](./kibana-plugin-core-server.savedobjectsclient.md) > [removeReferencesTo](./kibana-plugin-core-server.savedobjectsclient.removereferencesto.md)
+
+## SavedObjectsClient.removeReferencesTo() method
+
+Updates all objects containing a reference to the given {type, id} tuple to remove the said reference.
+
+Signature:
+
+```typescript
+removeReferencesTo(type: string, id: string, options?: SavedObjectsRemoveReferencesToOptions): Promise;
+```
+
+## Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| type | string
| |
+| id | string
| |
+| options | SavedObjectsRemoveReferencesToOptions
| |
+
+Returns:
+
+`Promise`
+
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.createconflicterror.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.createconflicterror.md
index 8e04282ce0c71f..97d33c3060bb02 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.createconflicterror.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.createconflicterror.md
@@ -7,7 +7,7 @@
Signature:
```typescript
-static createConflictError(type: string, id: string): DecoratedError;
+static createConflictError(type: string, id: string, reason?: string): DecoratedError;
```
## Parameters
@@ -16,6 +16,7 @@ static createConflictError(type: string, id: string): DecoratedError;
| --- | --- | --- |
| type | string
| |
| id | string
| |
+| reason | string
| |
Returns:
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.md
index a2eff4dd99ea5a..9b69012ed5f123 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.md
@@ -16,7 +16,7 @@ export declare class SavedObjectsErrorHelpers
| Method | Modifiers | Description |
| --- | --- | --- |
| [createBadRequestError(reason)](./kibana-plugin-core-server.savedobjectserrorhelpers.createbadrequesterror.md) | static
| |
-| [createConflictError(type, id)](./kibana-plugin-core-server.savedobjectserrorhelpers.createconflicterror.md) | static
| |
+| [createConflictError(type, id, reason)](./kibana-plugin-core-server.savedobjectserrorhelpers.createconflicterror.md) | static
| |
| [createGenericNotFoundError(type, id)](./kibana-plugin-core-server.savedobjectserrorhelpers.creategenericnotfounderror.md) | static
| |
| [createInvalidVersionError(versionInput)](./kibana-plugin-core-server.savedobjectserrorhelpers.createinvalidversionerror.md) | static
| |
| [createTooManyRequestsError(type, id)](./kibana-plugin-core-server.savedobjectserrorhelpers.createtoomanyrequestserror.md) | static
| |
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsexportoptions.hasreference.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsexportoptions.hasreference.md
new file mode 100644
index 00000000000000..9ea9fb2e7fba2a
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsexportoptions.hasreference.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsExportOptions](./kibana-plugin-core-server.savedobjectsexportoptions.md) > [hasReference](./kibana-plugin-core-server.savedobjectsexportoptions.hasreference.md)
+
+## SavedObjectsExportOptions.hasReference property
+
+optional array of references to search object for when exporting by types
+
+Signature:
+
+```typescript
+hasReference?: SavedObjectsFindOptionsReference[];
+```
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsexportoptions.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsexportoptions.md
index 5e93dca53847d1..b1b51a123696c0 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectsexportoptions.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsexportoptions.md
@@ -18,6 +18,7 @@ export interface SavedObjectsExportOptions
| --- | --- | --- |
| [excludeExportDetails](./kibana-plugin-core-server.savedobjectsexportoptions.excludeexportdetails.md) | boolean
| flag to not append [export details](./kibana-plugin-core-server.savedobjectsexportresultdetails.md) to the end of the export stream. |
| [exportSizeLimit](./kibana-plugin-core-server.savedobjectsexportoptions.exportsizelimit.md) | number
| the maximum number of objects to export. |
+| [hasReference](./kibana-plugin-core-server.savedobjectsexportoptions.hasreference.md) | SavedObjectsFindOptionsReference[]
| optional array of references to search object for when exporting by types |
| [includeReferencesDeep](./kibana-plugin-core-server.savedobjectsexportoptions.includereferencesdeep.md) | boolean
| flag to also include all related saved objects in the export stream. |
| [namespace](./kibana-plugin-core-server.savedobjectsexportoptions.namespace.md) | string
| optional namespace to override the namespace used by the savedObjectsClient. |
| [objects](./kibana-plugin-core-server.savedobjectsexportoptions.objects.md) | Array<{
id: string;
type: string;
}>
| optional array of objects to export. |
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.defaultsearchoperator.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.defaultsearchoperator.md
index 030bf86e1c9c5c..b716ed43948e4d 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.defaultsearchoperator.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.defaultsearchoperator.md
@@ -4,6 +4,8 @@
## SavedObjectsFindOptions.defaultSearchOperator property
+The search operator to use with the provided filter. Defaults to `OR`
+
Signature:
```typescript
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.hasreference.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.hasreference.md
index 3b1fbd8901b686..dea3d559507894 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.hasreference.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.hasreference.md
@@ -4,11 +4,10 @@
## SavedObjectsFindOptions.hasReference property
+Search for documents having a reference to the specified objects. Use `hasReferenceOperator` to specify the operator to use when searching for multiple references.
+
Signature:
```typescript
-hasReference?: {
- type: string;
- id: string;
- };
+hasReference?: SavedObjectsFindOptionsReference | SavedObjectsFindOptionsReference[];
```
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.hasreferenceoperator.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.hasreferenceoperator.md
new file mode 100644
index 00000000000000..2c06f76d5c7361
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.hasreferenceoperator.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsFindOptions](./kibana-plugin-core-server.savedobjectsfindoptions.md) > [hasReferenceOperator](./kibana-plugin-core-server.savedobjectsfindoptions.hasreferenceoperator.md)
+
+## SavedObjectsFindOptions.hasReferenceOperator property
+
+The operator to use when searching by multiple references using the `hasReference` option. Defaults to `OR`
+
+Signature:
+
+```typescript
+hasReferenceOperator?: 'AND' | 'OR';
+```
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.md
index ce5c20e60ca118..d393d579dbdd24 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.md
@@ -15,10 +15,11 @@ export interface SavedObjectsFindOptions
| Property | Type | Description |
| --- | --- | --- |
-| [defaultSearchOperator](./kibana-plugin-core-server.savedobjectsfindoptions.defaultsearchoperator.md) | 'AND' | 'OR'
| |
+| [defaultSearchOperator](./kibana-plugin-core-server.savedobjectsfindoptions.defaultsearchoperator.md) | 'AND' | 'OR'
| The search operator to use with the provided filter. Defaults to OR
|
| [fields](./kibana-plugin-core-server.savedobjectsfindoptions.fields.md) | string[]
| An array of fields to include in the results |
| [filter](./kibana-plugin-core-server.savedobjectsfindoptions.filter.md) | string | KueryNode
| |
-| [hasReference](./kibana-plugin-core-server.savedobjectsfindoptions.hasreference.md) | {
type: string;
id: string;
}
| |
+| [hasReference](./kibana-plugin-core-server.savedobjectsfindoptions.hasreference.md) | SavedObjectsFindOptionsReference | SavedObjectsFindOptionsReference[]
| Search for documents having a reference to the specified objects. Use hasReferenceOperator
to specify the operator to use when searching for multiple references. |
+| [hasReferenceOperator](./kibana-plugin-core-server.savedobjectsfindoptions.hasreferenceoperator.md) | 'AND' | 'OR'
| The operator to use when searching by multiple references using the hasReference
option. Defaults to OR
|
| [namespaces](./kibana-plugin-core-server.savedobjectsfindoptions.namespaces.md) | string[]
| |
| [page](./kibana-plugin-core-server.savedobjectsfindoptions.page.md) | number
| |
| [perPage](./kibana-plugin-core-server.savedobjectsfindoptions.perpage.md) | number
| |
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptionsreference.id.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptionsreference.id.md
new file mode 100644
index 00000000000000..6d5b76d6856809
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptionsreference.id.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsFindOptionsReference](./kibana-plugin-core-server.savedobjectsfindoptionsreference.md) > [id](./kibana-plugin-core-server.savedobjectsfindoptionsreference.id.md)
+
+## SavedObjectsFindOptionsReference.id property
+
+Signature:
+
+```typescript
+id: string;
+```
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptionsreference.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptionsreference.md
new file mode 100644
index 00000000000000..db04ef7b162a05
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptionsreference.md
@@ -0,0 +1,20 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsFindOptionsReference](./kibana-plugin-core-server.savedobjectsfindoptionsreference.md)
+
+## SavedObjectsFindOptionsReference interface
+
+
+Signature:
+
+```typescript
+export interface SavedObjectsFindOptionsReference
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [id](./kibana-plugin-core-server.savedobjectsfindoptionsreference.id.md) | string
| |
+| [type](./kibana-plugin-core-server.savedobjectsfindoptionsreference.type.md) | string
| |
+
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptionsreference.type.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptionsreference.type.md
new file mode 100644
index 00000000000000..0d7db3d72a4570
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptionsreference.type.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsFindOptionsReference](./kibana-plugin-core-server.savedobjectsfindoptionsreference.md) > [type](./kibana-plugin-core-server.savedobjectsfindoptionsreference.type.md)
+
+## SavedObjectsFindOptionsReference.type property
+
+Signature:
+
+```typescript
+type: string;
+```
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsremovereferencestooptions.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsremovereferencestooptions.md
new file mode 100644
index 00000000000000..0874aa460e2206
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsremovereferencestooptions.md
@@ -0,0 +1,19 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsRemoveReferencesToOptions](./kibana-plugin-core-server.savedobjectsremovereferencestooptions.md)
+
+## SavedObjectsRemoveReferencesToOptions interface
+
+
+Signature:
+
+```typescript
+export interface SavedObjectsRemoveReferencesToOptions extends SavedObjectsBaseOptions
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [refresh](./kibana-plugin-core-server.savedobjectsremovereferencestooptions.refresh.md) | boolean
| The Elasticsearch Refresh setting for this operation. Defaults to true
|
+
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsremovereferencestooptions.refresh.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsremovereferencestooptions.refresh.md
new file mode 100644
index 00000000000000..71e924a8af5e10
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsremovereferencestooptions.refresh.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsRemoveReferencesToOptions](./kibana-plugin-core-server.savedobjectsremovereferencestooptions.md) > [refresh](./kibana-plugin-core-server.savedobjectsremovereferencestooptions.refresh.md)
+
+## SavedObjectsRemoveReferencesToOptions.refresh property
+
+The Elasticsearch Refresh setting for this operation. Defaults to `true`
+
+Signature:
+
+```typescript
+refresh?: boolean;
+```
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsremovereferencestoresponse.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsremovereferencestoresponse.md
new file mode 100644
index 00000000000000..b5468a300d51d1
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsremovereferencestoresponse.md
@@ -0,0 +1,19 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsRemoveReferencesToResponse](./kibana-plugin-core-server.savedobjectsremovereferencestoresponse.md)
+
+## SavedObjectsRemoveReferencesToResponse interface
+
+
+Signature:
+
+```typescript
+export interface SavedObjectsRemoveReferencesToResponse extends SavedObjectsBaseOptions
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [updated](./kibana-plugin-core-server.savedobjectsremovereferencestoresponse.updated.md) | number
| The number of objects that have been updated by this operation |
+
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsremovereferencestoresponse.updated.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsremovereferencestoresponse.updated.md
new file mode 100644
index 00000000000000..67c3721ccdc688
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsremovereferencestoresponse.updated.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsRemoveReferencesToResponse](./kibana-plugin-core-server.savedobjectsremovereferencestoresponse.md) > [updated](./kibana-plugin-core-server.savedobjectsremovereferencestoresponse.updated.md)
+
+## SavedObjectsRemoveReferencesToResponse.updated property
+
+The number of objects that have been updated by this operation
+
+Signature:
+
+```typescript
+updated: number;
+```
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsrepository.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsrepository.md
index 1d11d5262a9c42..6a56f0bee718b6 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectsrepository.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsrepository.md
@@ -27,5 +27,6 @@ export declare class SavedObjectsRepository
| [find(options)](./kibana-plugin-core-server.savedobjectsrepository.find.md) | | |
| [get(type, id, options)](./kibana-plugin-core-server.savedobjectsrepository.get.md) | | Gets a single object |
| [incrementCounter(type, id, counterFieldName, options)](./kibana-plugin-core-server.savedobjectsrepository.incrementcounter.md) | | Increases a counter field by one. Creates the document if one doesn't exist for the given id. |
+| [removeReferencesTo(type, id, options)](./kibana-plugin-core-server.savedobjectsrepository.removereferencesto.md) | | Updates all objects containing a reference to the given {type, id} tuple to remove the said reference. |
| [update(type, id, attributes, options)](./kibana-plugin-core-server.savedobjectsrepository.update.md) | | Updates an object |
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsrepository.removereferencesto.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsrepository.removereferencesto.md
new file mode 100644
index 00000000000000..ff05926360938f
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsrepository.removereferencesto.md
@@ -0,0 +1,30 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsRepository](./kibana-plugin-core-server.savedobjectsrepository.md) > [removeReferencesTo](./kibana-plugin-core-server.savedobjectsrepository.removereferencesto.md)
+
+## SavedObjectsRepository.removeReferencesTo() method
+
+Updates all objects containing a reference to the given {type, id} tuple to remove the said reference.
+
+Signature:
+
+```typescript
+removeReferencesTo(type: string, id: string, options?: SavedObjectsRemoveReferencesToOptions): Promise;
+```
+
+## Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| type | string
| |
+| id | string
| |
+| options | SavedObjectsRemoveReferencesToOptions
| |
+
+Returns:
+
+`Promise`
+
+## Remarks
+
+Will throw a conflict error if the `update_by_query` operation returns any failure. In that case some references might have been removed, and some were not. It is the caller's responsibility to handle and fix this situation if it was to happen.
+
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.iscompleteresponse.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.iscompleteresponse.md
index e17e453ecb749d..799cf90003f61b 100644
--- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.iscompleteresponse.md
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.iscompleteresponse.md
@@ -7,5 +7,5 @@
Signature:
```typescript
-isCompleteResponse: (response?: IKibanaSearchResponse | undefined) => boolean | undefined
+isCompleteResponse: (response?: IKibanaSearchResponse | undefined) => boolean
```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ispartialresponse.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ispartialresponse.md
index 4b707ceeacc898..052b99a211400e 100644
--- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ispartialresponse.md
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ispartialresponse.md
@@ -7,5 +7,5 @@
Signature:
```typescript
-isPartialResponse: (response?: IKibanaSearchResponse | undefined) => boolean | undefined
+isPartialResponse: (response?: IKibanaSearchResponse | undefined) => boolean
```
diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.getdefaultsearchparams.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.getdefaultsearchparams.md
index e718ca42ca30fc..3d9191196aaf02 100644
--- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.getdefaultsearchparams.md
+++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.getdefaultsearchparams.md
@@ -9,7 +9,6 @@
```typescript
export declare function getDefaultSearchParams(uiSettingsClient: IUiSettingsClient): Promise<{
maxConcurrentShardRequests: number | undefined;
- ignoreThrottled: boolean;
ignoreUnavailable: boolean;
trackTotalHits: boolean;
}>;
@@ -25,7 +24,6 @@ export declare function getDefaultSearchParams(uiSettingsClient: IUiSettingsClie
`Promise<{
maxConcurrentShardRequests: number | undefined;
- ignoreThrottled: boolean;
ignoreUnavailable: boolean;
trackTotalHits: boolean;
}>`
diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.id.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.id.md
new file mode 100644
index 00000000000000..8e1d5d01bb6642
--- /dev/null
+++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.id.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [IEsRawSearchResponse](./kibana-plugin-plugins-data-server.iesrawsearchresponse.md) > [id](./kibana-plugin-plugins-data-server.iesrawsearchresponse.id.md)
+
+## IEsRawSearchResponse.id property
+
+Signature:
+
+```typescript
+id?: string;
+```
diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.is_partial.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.is_partial.md
new file mode 100644
index 00000000000000..da2a57a84ab2fd
--- /dev/null
+++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.is_partial.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [IEsRawSearchResponse](./kibana-plugin-plugins-data-server.iesrawsearchresponse.md) > [is\_partial](./kibana-plugin-plugins-data-server.iesrawsearchresponse.is_partial.md)
+
+## IEsRawSearchResponse.is\_partial property
+
+Signature:
+
+```typescript
+is_partial?: boolean;
+```
diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.is_running.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.is_running.md
new file mode 100644
index 00000000000000..78b9e07b77890c
--- /dev/null
+++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.is_running.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [IEsRawSearchResponse](./kibana-plugin-plugins-data-server.iesrawsearchresponse.md) > [is\_running](./kibana-plugin-plugins-data-server.iesrawsearchresponse.is_running.md)
+
+## IEsRawSearchResponse.is\_running property
+
+Signature:
+
+```typescript
+is_running?: boolean;
+```
diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.md
new file mode 100644
index 00000000000000..306c18dea9b0da
--- /dev/null
+++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.md
@@ -0,0 +1,20 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [IEsRawSearchResponse](./kibana-plugin-plugins-data-server.iesrawsearchresponse.md)
+
+## IEsRawSearchResponse interface
+
+Signature:
+
+```typescript
+export interface IEsRawSearchResponse