Skip to content
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

Make it easier to discover Lucene Query and Query DSL Syntax Help #4250

Closed
tbragin opened this issue Jun 16, 2015 · 20 comments
Closed

Make it easier to discover Lucene Query and Query DSL Syntax Help #4250

tbragin opened this issue Jun 16, 2015 · 20 comments
Assignees
Labels
Feature:Query Bar Querying and query bar features good first issue low hanging fruit release_note:enhancement

Comments

@tbragin
Copy link
Contributor

tbragin commented Jun 16, 2015

Currently, it is hard for a user to discover that the search bar supports Lucene Query and Elasticsearch Query DSL syntax. When there are no documents found, we do display some Lucene query search assistance in the main frame itself. However, if there are any documents found in Discover, or if you are in Visualize or Dashboard, there is no way to discover this support other than looking at the docs.

One possibility is to enhance the typeahead assistant in the search bar to provide these links.
screen shot 2015-06-16 at 9 07 03 am

Currently, it offers access to search history, which is useful, but how about adding more help at the bottom? Some ideas:

@jccq
Copy link

jccq commented Jun 16, 2015

very useful indeed.
Configurable Autocompletion using ES indexes would also be quite useful. E.g. we use Kibana not for logs but for browsing entities, people, companies etc. being able to get a good autocomplation when searching for a specific company would be great.

@mradamlacey
Copy link

+1 for autocompletion. Would be a great feature to make the full Lucene syntax more discoverable

@rkhapre
Copy link

rkhapre commented Oct 8, 2015

+1 for auto-completion.
+1 Type ahead suggest features...

@sts
Copy link

sts commented Nov 26, 2015

Just some thoughts:

  • tab completion

  • drop layer which provides the current position of input with context/help (eg. table)

    email: info@example.com OR . . . 
    ------ ---------------- --
    |                 |   |
    * show possible ke|ys * help with syntax
                      |
                      * start autocompleting values
  • first keypress is down-arrow? bring up a query history/fuzzy autocomplete

  • stem based upon field popularity

  • info whether in Lucene or Query DSL mode

  • considering zsh or google spreadsheets good examples

output_4fdlga
completion

@chenryn
Copy link
Contributor

chenryn commented Nov 27, 2015

+1

@jccq
Copy link

jccq commented Dec 5, 2015

franky also a simple opening panel with example like https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax would be a great improvement

@mightydok
Copy link

+1 for issue

@stv-io
Copy link

stv-io commented Sep 7, 2016

+1

@jccq
Copy link

jccq commented Oct 9, 2016

how about autosearching for field values e.g. category:ga[mes is suggested?]

@tbragin tbragin added :Discovery Feature:Query Bar Querying and query bar features labels Nov 9, 2016
@dav3860
Copy link

dav3860 commented Nov 17, 2016

Search bar auto-completion would be a great addition to Kibana.

@nicocsgamer
Copy link

+1

@Bargs
Copy link
Contributor

Bargs commented Feb 10, 2017

@tbragin regardless of future plans, I feel like we should at least provide a link to the query string query documentation, what do you think? At the moment it's not at all obvious where to find the documentation.

@tbragin
Copy link
Contributor Author

tbragin commented Feb 10, 2017

@Bargs couldn't agree more.

@Bargs Bargs added the good first issue low hanging fruit label Feb 11, 2017
@tbragin tbragin added the P2 label Feb 15, 2017
@tbragin
Copy link
Contributor Author

tbragin commented Feb 15, 2017

The only question is, where to put the link? The other approach i've seen is to have a fold-out from the search bar that has some in-product docs and links off to more info.

screen shot 2017-02-15 at 10 52 52 am

@Bargs
Copy link
Contributor

Bargs commented Feb 15, 2017

@cjcenizal what do you think of Tanya's proposal above? I quite like it, but I dunno if you've established other conventions for in page documentation yet. At the moment I would implement this as a very simple panel with the existing hints you see when there are 0 results and a link to the query string query documentation.

@cjcenizal
Copy link
Contributor

cjcenizal commented Feb 15, 2017

@Bargs I think this is a great idea! I put together this very simple wireframe as a guide.

image

Does this look like what you had in mind? I think it can be accomplished with the kuiSubTitle, kuiText, kuiTable, and kuiLink classes. I don't think it's worth formatting the "Example queries" like code, since that's not how they appear in the actual search box itself. Let's try using the kuiTable class for the table, for now... it may work, or it may not. We might have to create some special classes to remove lines and simplify if it looks too busy here. What do you think?

@Bargs
Copy link
Contributor

Bargs commented Feb 16, 2017

@cjcenizal I love it, I'll take a swing at it and show you when I've got something. Thanks!

@trtrmitya
Copy link

+1. What @sts proposed looks very useful!

@rahulghanate
Copy link

Apart from lucene syntaxs, suggestions for fields are much needed.

@Bargs
Copy link
Contributor

Bargs commented Sep 29, 2017

@rahulghanate we're actively working on this for our new query language #12315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Query Bar Querying and query bar features good first issue low hanging fruit release_note:enhancement
Projects
None yet
Development

No branches or pull requests