Skip to content

Conversation

@axlewin
Copy link
Contributor

@axlewin axlewin commented Jan 12, 2026

Replaces the high-level REST client previously used for Elasticsearch with the new(er) Java API client. This is necessary to allow Elasticsearch to be upgraded from v7, but this PR does not actually upgrade the version.

Properly nest the expected queries
@codecov
Copy link

codecov bot commented Jan 12, 2026

Codecov Report

❌ Patch coverage is 31.07050% with 264 lines in your changes missing coverage. Please review.
✅ Project coverage is 36.76%. Comparing base (e375ca8) to head (d8870cc).
⚠️ Report is 119 commits behind head on main.

Files with missing lines Patch % Lines
...cam/cl/dtg/segue/search/ElasticSearchProvider.java 43.19% 137 Missing and 9 partials ⚠️
.../ac/cam/cl/dtg/segue/etl/ElasticSearchIndexer.java 0.00% 81 Missing ⚠️
...am/cl/dtg/segue/dao/content/GitContentManager.java 6.25% 29 Missing and 1 partial ⚠️
...cam/cl/dtg/segue/dao/schools/SchoolListReader.java 0.00% 5 Missing ⚠️
...ava/uk/ac/cam/cl/dtg/segue/etl/ContentIndexer.java 0.00% 1 Missing ⚠️
...c/cam/cl/dtg/segue/etl/ETLConfigurationModule.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #744      +/-   ##
==========================================
- Coverage   36.84%   36.76%   -0.08%     
==========================================
  Files         540      545       +5     
  Lines       23642    23813     +171     
  Branches     2825     2834       +9     
==========================================
+ Hits         8711     8756      +45     
- Misses      14056    14175     +119     
- Partials      875      882       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

generateBoolMatchQuery is deprecated; it would be nice to remove it entirely, but for now just replace it where it is straightforward to do so
@axlewin axlewin marked this pull request as ready for review January 13, 2026 09:42
axlewin and others added 6 commits January 20, 2026 11:25
ObjectMappers are costly to create, but even using them is expensive.
In these cases we did have ObjectNode and JsonNode structure and were
mapping to simple List<String>; so instead of the heavyweight, just use
streams to convert the Jackson wrapper classes into plain Java.

(cherry picked from commit 6fdecfc)
@jsharkey13 jsharkey13 merged commit 98ab8eb into main Jan 22, 2026
5 checks passed
@jsharkey13 jsharkey13 deleted the elasticsearch-java-api branch January 22, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants