KQL still removes leading zero and breaks query in some cases #85548
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:KQL
KQL
Feature:Search
Querying infrastructure in Kibana
PR sent
SharedUX/fix-it-week
Bugs that have been groomed and queued up for the team's next fix it week
triage_needed
Kibana version:
7.9.1
Elasticsearch version:
7.9.1
Server OS version:
Ubuntu 16.04.6 LTS
Browser version:
Google Chrome Version 87.0.4280.66 (Official Build) (64-bit)
Browser OS version:
Linux Mint 19.1 Tessa
Original install method (e.g. download page, yum, from source, etc.):
download page
Describe the bug:
As in #62217, there are some cases left, where the leading zero is removed from the query. For example:
the search
incMods:{ version:077 }
results in a query...{"match":{"incMods.version":"077"}}...
the search
incMods:{ version:070 }
results in a query...{"match":{"incMods.version":70}}...
The field version is mapped as (a lowercased) keyword.
The fix for #62217 introduced a regex, that I think needs to be fixed (
^0.0$
should be^0\.0$
):https://github.com/elastic/kibana/pull/62748/files#diff-90efe212df5748f7d18f7215c19a805fcfdb3150874b41a846eb42d6b4e654e5R250
The text was updated successfully, but these errors were encountered: