Prepare for supporting multiple Lucene versions #2867
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 160 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.304
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2867"
general
weight: 0.35
paul-aiyedun
This PR lays the groundwork for supporting multiple Lucene versions in the same release. It doesn't add any new Lucene versions and still releases only the Lucene 10.2 jar, but it creates the infrastructure for adding new versions in the future, adds backward compatibility tests, and makes sure the jar can still be loaded on JDK 21, where it builds indexes on the CPU only.
The main code change is the replacement of the reflection-based
LuceneProviderwith the newCuVSCodecsclass as the main entry point into the cuVS-Lucene ecosystem.LuceneProvideris now deprecated but will still be supported with Lucene 10.2.The biggest structural change is that each supported Lucene version will get a separate Maven module with its version-specific pieces. This PR splits
java/cuvs-lucene/srcintojava/cuvs-lucene/srcwith the shared code andjava/cuvs-lucene/lucene-10.2/srcwith the Lucene 10.2-specific pieces. Every version-specific module will have its ownLuceneCompatclass, which isolates the calls whose signature or location differs between Lucene releases, so that the shared code compiles against every supported version. The artifact is now published ascuvs-lucene-10.2, and the oldcuvs-lucenecoordinates are relocated to it.Relates to #2702