opensearch-project / OpenSearch-Dashboards

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

[Proposal] - Improved DQL Querying #6072

Open shanilpa opened 4 months ago

shanilpa commented 4 months ago

Overview

The following proposal aims to improve the DQL querying experience in Discover by including auto-complete / suggest functionality to help users write DQL searches. Related issue: https://github.com/opensearch-project/OpenSearch-Dashboards/issues/1176

Autocomplete for DQL

Users should be able to select from syntax, fields, matching saved searches, previous searches. Recommended component to use: https://oui.opensearch.org/1.5/#/forms/suggest

image

kgcreative commented 4 months ago

For DQL, we should probably change the term from "DQL Query" To "Search and filter using DQL" -> Since DQL is a subset of Query DSL, and provides the basis for searching and filtering, this isn't really a query. This will also allow us to disambiguate between saved searches (currently in Discover), saved queries (for PPL/SQL), and saved filters (Currently named saved queries). This will also help clarify searching/filtering in dashboards and visualizations, since DQL unifies the search/filter behavior across dashboards, visualizations and discover.

golgotow commented 3 months ago

+1 from us to auto-complete