-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indication of the search language currently used (KQL, Lucene) #30277
Comments
Pinging @elastic/kibana-app |
Can we somehow place it next to the |
@cchaos another thing I just thought of is if we only put it in the placeholder, there will still be no visual indication of which language is in use when the input is already populated with text (e.g. loading a saved search) |
This morning I spoke with a user who wasn't aware he was using KQL and was pasting the search bar query into filter aggregation (Lucene) without luck or understanding what is wrong. |
@Bargs good idea I'm good with the plan 👍 |
My only concern is how much space we're losing in the query bar for that toggle (which really will probably only be clicked once).
Wouldn't they be able to tell by the syntax? |
@cchaos the syntax is almost identical in most cases. For example |
If KQL is the new default, I'd drop the extranous first icon (it serves no purpose). I'd remove the placeholder text, which isn't needed now that KQL explains the syntax. I'd then just make "options" into the name of the active syntax language ("KQL" for default). You'll get extra room with the removal of the icon and KQL will likely always be the case these days, so you'll gain some space there as well. I don't think most people know what "e.g" means, and the extra parens needed make it confusing to know what part of that placeholder is real syntax and what isn't. I think it's better to just let people learn it through KQL autocomplete since it does a great job of showing you the ropes. |
@snide the only snag there is that autocomplete only works with a Basic license or above. |
Put up a PR with Dave's suggestions #30899 |
Currently, users need to go to the options next to the search bar in order to switch between KQL and Lucene, it is also the only way to know which language they are currently using.
Describe the feature: As preparation for moving to use KQL by default, add an indication visible in the search bar to whether the search bar is using KQL or Lucene without the need to select options link
@elastic/kibana-design
The text was updated successfully, but these errors were encountered: