SOLR-18612: solr/core: SimpleOrderedMap for search-side response sections #5365
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.50) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 580 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.381
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #5365"
general
weight: 0.35
nick-boss-tech
https://issues.apache.org/jira/browse/SOLR-18612
Description
SIP-22 step 5, fourth slice (after #5311 SolrJ, #5326 core init args, #5336 admin/backup responses). This one covers the search-side
solr/coresites where aNamedListis built with keys that never repeat: 22 sites in 14 Java files, plus the one Admin UI screen that read one of them in the flat form.Independent of #5336 (no shared files except the upgrade-note page: both add a "Response Format" section with their own bullets, so whichever merges second gets a one-line merge of the bullet lists).
Solution
Response-visible, each keyed by something unique (term, document key, field name, fixed names):
LukeRequestHandler: a field'shistogram(topTermsstays aNamedList:indexedToReadable()is not injective for legacy Trie precision terms, so readable keys can repeat)MoreLikeThisHandler:interestingTermswithmlt.interestingTerms=detailsMoreLikeThisComponent: the SolrCloudmoreLikeThissection, keyed by document, as single-node already wasSearchHandler: thedebug/explainsection emitted for an empty resultIGainTermsQParserPlugin(featuredTerms;docFreqstays aNamedListbecause the producer adds each featured term a second time with a null value, a pre-existing bug worth its own JIRA),TextLogisticRegressionQParserPlugin(logit)DirectUpdateHandler2.split: the Core AdminSPLITresponse (timing,failed)Internal, never serialized as is: the spellchecker and JSON-facet config conversions (
SpellCheckComponent,FacetParser),SignificantTermsQParserPlugin's working maps, the managed-resourceinitArgs(ManagedResource/RestManager; the response already converts it to a map), and the grouping shard-result serializers (SearchGroupsResultTransformer,TopGroupsResultTransformer), whose output travels between shards as javabin and is read back as aNamedListeither way.Admin UI: the Schema Browser's term-info panel parsed Luke's
topTermsandhistogramby index as a flat[name, value, ...]array, so it rendered nothing once they became objects (this is what broke the Admin UI tests on an earlier, larger version of this change).schema.jsnow reads both forms through one helper and sorts object-formtopTermsby descending count before grouping, since JavaScript enumerates integer-like keys first. The upgrade note says so.AI disclosure: the site classification, the edits, the notes and this description were drafted with Claude Code and reviewed by me.
Tests
No new Java tests: the shape change is the documented intent of this SIP step. Ran the suites covering every changed path:
LukeRequestHandlerTest,LukeRequestHandlerDistribTest,MoreLikeThisHandlerTest,MoreLikeThisComponentTest,DistributedMLTComponentTest,DebugComponentTest,DistributedDebugComponentTest,SpellCheckComponentTest,DistributedSpellCheckComponentTest,SignificantTermsQParserPluginTest,TestDistributedGrouping,SolrIndexSplitterTest,SplitByPrefixTest, therestpackage andTestJsonFacets: 175 tests, all pass. Plus./gradlew check -x test.Coverage gaps, stated plainly:
{!igain}and{!tlogit}have no functional tests insolr/core(they are driven by the streamingfeatures/trainexpressions). The Admin UI browser tests (:solr:webapp:test -Ptests.selenium=true) could not run on my machine because Selenium Manager does not support Linux ARM; the rewrittenschema.jsparser was checked under Node with both input forms and produces identical structures, and the "Admin UI Tests" workflow should be allowed to run on this PR.Checklist
Please review the following and check all that apply:
mainbranch../gradlew check.