-
Notifications
You must be signed in to change notification settings - Fork 841
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
Can't use _ or * in EuiSearchBar #951
Comments
we'll need to add that said, adding support for |
btw, we might want to add the supported term characters to the schema... such that it'll be configurable |
I don't believe adding
Related, Is there decent/full documentation of what/how syntax should be parsed? The Kibana docs says Kibana's query language is based on Lucene's query, but doesn't provide a detailed description. |
it's a bit of a contradiction. The question you're asking is the right question, and if the answer is that
These are not the right questions to ask. The question should be "what characters are valid as within terms and/or within field values". Once you have answer to this, then you need to make sure the grammar supports it. Quoting does't change the validity of the terms/values it contains.
sounds like a bug
this is not KQL nor Lucene... EUI search bar for now has it's own grammar and AST (the plan was at some point to port it to KQL, but there's a lot that needs to be done there... e.g. KQL is a Kibana thing, EUI is not) the syntax is here: https://github.com/elastic/eui/blob/master/src/components/search_bar/query/default_syntax.js the AST is here: https://github.com/elastic/eui/blob/master/src/components/search_bar/query/ast.js |
to clarify this:
The reason I mentioned that as an option to consider is that in different contexts and use cases, one may have different constraints on valid characters... btw... as part of the discussions of supporting KQL, one of the things we can do is creating a higher level interface The main thing to consider here... is that the intention here was on one hand to keep the query language very simple... as basic as possible, and at the same time, make it easy to make sense of the AST such that the filter controls associated with it can resolve their state. (For example, the current language only supports ANDing on the top level and ORing on the second level... that's it... one cannot nest addition boolean clauses deeper than that... intentionally) |
Agreed on all counts; adding the two characters fixes the immediate issue, and you raised the question behind my statements - what characters are valid as within terms and/or within field values Was there ever a set expectation? |
not really... I came up with the initial set of characters based on my needs at the time... tried to keep it a small set to begin with, knowing we can always expand it as we find the need. |
Entering search terms containing
_
or*
errors out:Use case:
In Management > Saved Objects, users can use the search bar to filter table of saved objects by name. Saved objects include index patterns, which often have the above characters in their name.
The text was updated successfully, but these errors were encountered: