opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.7k stars 898 forks source link

[Feature] Search Templates in OpenSearch Dashboards #3355

Open dtaivpp opened 1 year ago

dtaivpp commented 1 year ago

Is your feature request related to a problem? Please describe. At the moment there is no way for users to tune relevance within the search bars of OpenSearch Dashboards without building complicated saved queries that may be difficult to modify and share.

Describe the solution you'd like As a user I would like to be able to leverage search templates from within the dashboards search bar. In this way users would be able to tune the relevance of searches without needing to build complicated queries with DQL/Lucene queries. This would enable users who deliver OpenSearch as a service or managed OpenSearch installs to provide a more relevant search experience within dashboards for any use case.

This should likely be configurable through a standard API and a user interface in dashboards.

Describe alternatives you've considered

Things could stay as they are however that makes it difficult to adopters to use OpenSearch Dashboards with the relevance features OpenSearch offers.

Additional context

Taken from a request in the DataOps Poland meetup.

joshuarrrr commented 1 year ago

@dtaivpp Excuse my ignorance - are search templates an existing concept/feature of OpenSearch (and is there documentation to reference)? Or are you proposing a Dashboards-only solution (that's an alternative to queries)?

dtaivpp commented 1 year ago

@joshuarrrr search templates are a native part of OpenSearch already. I've heard from a few people who are building OpenSearch/OpenSearch Dashboards deployments for their clients and they are handing them whole files with sample queries for them to find data. After demonstrating some of the stuff that could be done with search templates they were very interested to see if that could be exposed for Dashboards.

Here might be a sample workflow: User selects from top left "saved queries" drop down -> selects query template -> then uses a natural language query instead of handwriting a query.