Skip to content

Commit 46e001b

Browse files
committed
Add CHANGELOG entry and spotless results
Signed-off-by: Atri Sharma <atri.jiit@gmail.com>
1 parent b8cf6de commit 46e001b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
9999

100100
### Fixed
101101
- Fix flaky tests in CloseIndexIT by addressing cluster state synchronization issues ([#18878](https://github.com/opensearch-project/OpenSearch/issues/18878))
102+
- Fix flaky ExistsQueryBuilderTests.testToQuery ([#18274](https://github.com/opensearch-project/OpenSearch/issues/18274))
102103
- Add task cancellation checks in aggregators ([#18426](https://github.com/opensearch-project/OpenSearch/pull/18426))
103104
- Fix concurrent timings in profiler ([#18540](https://github.com/opensearch-project/OpenSearch/pull/18540))
104105
- Fix regex query from query string query to work with field alias ([#18215](https://github.com/opensearch-project/OpenSearch/issues/18215))

server/src/test/java/org/opensearch/index/query/ExistsQueryBuilderTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ protected ExistsQueryBuilder doCreateTestQueryBuilder() {
9393
}
9494
// Avoid patterns that would match the derived field "raw.derived_keyword"
9595
// This includes "raw", "raw*", "raw.xxx", "r*", "ra*", etc.
96-
if (fieldPattern.equals("raw") || fieldPattern.startsWith("raw") ||
97-
(fieldPattern.contains("*") && "raw.derived_keyword".startsWith(fieldPattern.replace("*", "")))) {
96+
if (fieldPattern.equals("raw")
97+
|| fieldPattern.startsWith("raw")
98+
|| (fieldPattern.contains("*") && "raw.derived_keyword".startsWith(fieldPattern.replace("*", "")))) {
9899
fieldPattern = TEXT_FIELD_NAME;
99100
}
100101
return new ExistsQueryBuilder(fieldPattern);

0 commit comments

Comments
 (0)