Skip to content

fix(search): normalize KQL path once - #3516

Open
dschmidt wants to merge 1 commit into
mainfrom
fix/search-kql-path-normalization
Open

fix(search): normalize KQL path once#3516
dschmidt wants to merge 1 commit into
mainfrom
fix/search-kql-path-normalization

Conversation

@dschmidt

Copy link
Copy Markdown
Contributor

Description

The trailing slash of a KQL path: value was trimmed in the bleve compiler and again in the OpenSearch transpiler. The normalizer now trims it once for both engines. An empty value, path:"/", was a term query on the empty string and matched nothing; it now means the space root, consistent with the scope handling.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

The trailing slash is trimmed in the normalizer instead of in each compiler; an empty path is the space root.
@codacy-production

codacy-production Bot commented Sep 11, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

🟢 Coverage 20.00% diff coverage · +0.00% coverage variation

Metric Results
Coverage variation +0.00% coverage variation (-1.00%)
Diff coverage 20.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (348890d) 88625 21132 23.84%
Head commit (bab439b) 88624 (-1) 21136 (+4) 23.85% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#3516) 5 1 20.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant