← Back to Pull requests

[Docs] Add applies_to tags to text analysis reference #167720

Open
unknown opened this pull request with 253 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 26, 2026 13:25 UTC
Author

Closes elastic/docs-content-internal#2089.

Summary

  • Add page-level applies_to coverage to all 80 text analysis reference pages. Mark 78 pages as GA in Stack and Serverless.

  • Mark hunspell and hyphenation_decompounder as unavailable in Serverless because they require local dictionary or hyphenation files. Mark optional file-based parameters and examples where they appear. Plugins and custom configuration files

  • Document that Serverless includes the analysis-phonetic plugin and link to Stack installation instructions by deployment type.
  • Examples and Serverless applicability

  • Change the custom ngram filter example to 3–4 characters so it fits the default limit. Mark the instructions for changing index.max_ngram_diff and index.max_shingle_diff as unavailable in Serverless. Explain how output_unigrams affects the shingle size limit and why the existing 2–5 example works.

  • Use inline configuration in the shared dictionary_decompounder, keep, and keyword_marker examples. Present the inline stemmer_override example first and mark the file-based variant as Stack-only. Explain before the language analyzer examples that Stack users can supply stop words from a file.

  • Link synonym and synonym_graph to the guide for configuring managed sets in Kibana or through the API. Document inline rules for index-time analysis in Serverless and scope the synonyms_path examples to Stack. Configure synonyms
  • Validation

  • Docs-builder completed with zero errors and warnings. Checked all 80 page badges and both synonyms guide links in the rendered output.

  • Checked the adjusted request examples and the six shingle requests against the default limits. Vale reported no findings on changed lines, and git diff --check passed.
  • Diff: 253 lines (+189 / -64) across 3 files Reviewer: kosabogi Review duration: 9978m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 253 lines diff across 3 files
    0.39
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.331
    Real PR Conversation Timeline
    1 comments
    "Review active on #167720"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    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: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    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: 20.8% · Safe to merge
    20.8%