Skip to content

Document how to extend context with elasticsearch.createCluster result #47689

@mshustov

Description

@mshustov

Platform creates 2 elasticsearch clients: data and admin. NP plugins may access them via ElasticsearchServiceSetup contract and RequestHandlerContext context. We are deprecating the former API in favor of using contexts.
Plugins also may create their custom cluster clients via elasticsearch.createCluster. By default, those clients do not present in RequestHandlerContext. It might be now obvious why some clients are available via context and some not. We should document that plugins should extend context for their custom cluster clients, otherwise they will have behavior inconsistent with the platform API.

Metadata

Metadata

Assignees

Labels

Feature:New PlatformTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//blocker

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions