Skip to content

[GS] SavedObject results provider #65222

@pgayvallet

Description

@pgayvallet

This issue is to discuss the concrete implementation of the SavedObject result provider needed for the GlobalSearch MVP: #58049

Related issues:

From #58049, the types of SO we would need to return would be:

  • Dashboards
  • Visualizations
  • Saved searches
  • Canvas workpads
  • Maps
  • Graphs
  • ML jobs (future)
  • SIEM Timelines

Questions:

How exactly will we perform the query / which fields should we search by

It's still unclear which fields we should search by. The base SavedObject type do not even have a title field in the base implementation, and I'm not sure all types actually declare one in their mappings.

Second point, when calling for example gs.find('dash'), should we search on the type field and return all dashboard objects? The type field being a keyword, is this doable?

Is our current find API sufficient, or will we need to create a new one

Directly depends on the first point. I feel like we will need to add a new API to answer the GS needs, even if ideally this would be avoided.

Is it technically possible to retrieve all SO in a single query

For performances, it would be best if we could retrieve all types of saved objects in a single query, instead of performing x (= nb types) queries. Would this be a possibility?

Metadata

Metadata

Assignees

Labels

NeededFor:Core UIREASSIGN from Team:Core UIDeprecated label for old Core UI teamTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//discuss

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions