← Back to Pull requests

SOLR-11033: introduce multilingual configset #5370

Open
unknown opened this pull request with 357 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 20, 2026 15:50 UTC
Author

https://issues.apache.org/jira/browse/SOLR-11033

Description

Move built-in language-specific text analysis out of _default into a new _multilingual configset. New collections using _default get general-purpose field types; collections needing types such as text_en or dynamic fields such as *_txt_fr can select _multilingual. Existing ZooKeeper configsets and collections remain unchanged.

Even better, you can use teh Schema Designer to pick your languages (driven by the new _multilingual configset and add those fields to your own configset! imagine if we offered lots of sample configsets that you cherry picked to make your configset?

also some improvements in schema designer, the big one being the list of languages is now not hardcoded.

Related: #971.

Solution

  • Move language-specific field types, dynamic fields, and supporting files into _multilingual, using the current schemas and dictionaries.

  • Keep _multilingual's generic analyzers free of stopword removal and synonym expansion. Stopwords and synonyms use language-specific files under lang/; _default keeps its existing generic resources.

  • Bootstrap _multilingual when installed locally and absent from ZooKeeper, preserving existing configsets. Follow _default's startup upload path without expanding CoreContainer's filesystem allowlist.

  • Let Schema Designer restore selected languages from _multilingual while preserving custom source definitions and files. Generic schema editing also works when _multilingual is absent.

  • Populate Schema Designer's language selector from the _multilingual schema in ZooKeeper, using Java locale names. Use cs for Czech field types, dynamic fields, and resources in the new configset.

  • Ship only _default in the slim distribution; include _multilingual and the techproducts configset in the full distribution.

  • Update Schema Designer help, the reference guide, Solr 11 upgrade notes, and the changelog.
  • Developed with assistance from OpenAI Codex.

    Tests

  • ./gradlew tidy and ./gradlew check -x test passed.

  • Existing focused Java suites covering configset services, Schema Designer, configset APIs, ZooKeeper reads, and CoreContainer passed, with 3 skipped. Regression coverage verifies startup outside the API path allowlist and preservation of that allowlist.

  • Schema Designer Java suites: 29 tests passed. Headless browser suite: all 3 tests passed, covering schema-driven language choices, saving a language selection, and an absent _multilingual configset.

  • Packaged CATS CreateCollectionTest and ZkTest: all 24 tests passed, including creating a _multilingual collection and indexing and querying French text.

  • Built and inspected both distribution archives: slim contains only _default; full contains _default, _multilingual, and sample_techproducts_configs.
  • Diff: 357 lines (+267 / -90) across 4 files Reviewer: nick-boss-tech Review duration: 14667m
    All Vouch review confidence checks passed
    Residual risk 0.35 = Change Risk (0.66) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.66 · 357 lines diff across 4 files
    0.66
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.352
    Shallow Review Depth shallow_review_depth
    0.344
    Sensitive Paths sensitive_paths
    0.066
    Real PR Conversation Timeline
    1 comments
    "Review active on #5370"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 46.7% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 65.8% (HIGH) · Higher = larger blast radius
    65.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 35% · Moderate risk
    35%
    Repository