-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
This issue is to discuss the concrete implementation of the SavedObject result provider needed for the GlobalSearch MVP: #58049
Related issues:
- GS meta issue: [Meta] Global Search #57576
- GS plugin API: Generic UI search API #61657
- GS API RFC: [RFC] Global search API #64284
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?