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

Range filters on scripted fields do not work #179387

Open
lukasolson opened this issue Mar 25, 2024 · 1 comment
Open

Range filters on scripted fields do not work #179387

lukasolson opened this issue Mar 25, 2024 · 1 comment
Labels
bug Fixes for quality problems that affect the customer experience :DataDiscovery/fix-it-week Feature:Filters Feature:Scripted Fields Scripted fields features Feature:Unified search Unified search related tasks impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph)
Projects

Comments

@lukasolson
Copy link
Member

Kibana version: 8.14.0-SNAPSHOT

Elasticsearch version: 8.14.0-SNAPSHOT

Describe the bug:

Creating a range filter on a scripted field via the "Add a filter" dialog no longer works.

Steps to reproduce:

  1. Create a numeric scripted field
  2. Add a filter (+ button) where the value for the field is between a range
  3. Observe that there are no results

Expected behavior:

The matching results would be shown.

Screenshots (if relevant):

Untitled.mov

Any additional context:

When you click "Edit as query DSL" after creating the filter manually, it shows regular ES DSL (which doesn't work with scripted fields):

image

However, when you click "Edit as query DSL" after creating the filter through a histogram click, it shows the correct script:

image

@lukasolson lukasolson added bug Fixes for quality problems that affect the customer experience Feature:Filters Feature:Scripted Fields Scripted fields features Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) Feature:Unified search Unified search related tasks labels Mar 25, 2024
@elasticmachine
Copy link
Contributor

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

@kibanamachine kibanamachine added this to Inbox in Discover Mar 25, 2024
@davismcphee davismcphee added loe:small Small Level of Effort impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. :DataDiscovery/fix-it-week labels Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience :DataDiscovery/fix-it-week Feature:Filters Feature:Scripted Fields Scripted fields features Feature:Unified search Unified search related tasks impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph)
Projects
No open projects
Development

No branches or pull requests

3 participants