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

[Filters] Add support for creating regex filters #121750

Closed
Tracked by #166068
Jolter opened this issue Dec 21, 2021 · 5 comments
Closed
Tracked by #166068

[Filters] Add support for creating regex filters #121750

Jolter opened this issue Dec 21, 2021 · 5 comments
Labels
enhancement New value added to drive a business result Feature:Filters Feature:Search Querying infrastructure in Kibana Icebox impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:large Large Level of Effort Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.

Comments

@Jolter
Copy link

Jolter commented Dec 21, 2021

Describe the feature:

As a user, I want to add a Filter to my search using a regex matching Operator in the "Add filter/Edit filter" dialog , so that I can do regex matching without using the Lucene/KQL search box.

I imagine that this dropdown would be extended with an additional Operator called "matches". (Other suitable name suggestions might be "matches regex", or insert your suggestion here.)

image

A related change is labeled for v8.1.0, where a Registry is added for these values. #111897
I wouldn't mind seeing this feature in v7.X, but v8.X would also be fine.

Describe a specific use case for the feature:

Target users are beginner Kibana users who are unlikely to become experts, i.e. users unwilling to invest time in learning KQL or Lucene search syntax, where the regex functionality already exists.

@botelastic botelastic bot added the needs-team Issues missing a team label label Dec 21, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServicesUx)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 29, 2021
@lukeelmers lukeelmers added enhancement New value added to drive a business result needs-team Issues missing a team label labels Dec 29, 2021
@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 29, 2021
@exalate-issue-sync exalate-issue-sync bot added impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. loe:small Small Level of Effort impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:medium Medium Level of Effort and removed impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. loe:small Small Level of Effort labels Jan 10, 2022
@lukasolson
Copy link
Member

@Jolter, agreed that this would be a nice addition. Until it's added, as a workaround you can click "Edit as Query DSL", and then enter something like the following:

{
  "query": {
    "regexp": {
      "username": {
        "value": "k.*y",
        "case_insensitive": true
      }
    }
  }
}

@lukasolson lukasolson changed the title Regex filters in "Add filter" / "Edit filter" in Discover [Filters] Add support for creating regex filters Apr 6, 2022
@exalate-issue-sync exalate-issue-sync bot added loe:large Large Level of Effort and removed loe:medium Medium Level of Effort labels Apr 6, 2022
@petrklapka petrklapka added Feature:Search Querying infrastructure in Kibana Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. and removed Team:AppServicesSv labels Nov 23, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@Kalocjak
Copy link

Kalocjak commented Jun 8, 2023

Definitely a desirable feature. Something that would look like this - option to select between match_phrase, wildcard, regexp, regexp (case insensitive) would make searching much quicker and more comfortable.
image

@kertal
Copy link
Member

kertal commented Oct 22, 2024

Closing this because it's not planned to be resolved in the foreseeable future. It will be tracked in our Icebox and will be re-opened if our priorities change. Feel free to re-open if you think it should be melted sooner.

When using ES|QL in Kibana it's already possible to make use of RexExp e.g. by using RLIKE
https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-functions-operators.html#esql-rlike-operator

@kertal kertal closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
@kertal kertal added the Icebox label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Filters Feature:Search Querying infrastructure in Kibana Icebox impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:large Large Level of Effort Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Projects
None yet
Development

No branches or pull requests

7 participants