Skip to content

fix(index): correct analyzer filters and dynamic template names#3076

Merged
marevol merged 1 commit intomasterfrom
fix/opensearch-analyzer-mappings
Mar 15, 2026
Merged

fix(index): correct analyzer filters and dynamic template names#3076
marevol merged 1 commit intomasterfrom
fix/opensearch-analyzer-mappings

Conversation

@marevol
Copy link
Contributor

@marevol marevol commented Mar 15, 2026

Summary

  • Fix incorrect analyzer filter configurations and dynamic template name mismatches in OpenSearch index mappings

Changes Made

  • English analyzer: Reorder filters to apply possessive_stemmer_en_filter before lowercase, add stopword_en_filter, and replace possessive_stemmer_en_filter at end with stemmer_en_filter
  • German analyzer: Add missing german_keywords filter before german_override
  • Persian analyzer: Add missing persian_keywords filter
  • Romanian analyzer: Add missing romanian_keywords filter before romanian_override
  • Thai analyzer: Add missing thai_keywords filter
  • Dynamic templates: Fix template name mismatches (lang_calang_ckb-iq, lang_enlang_en-ie, lang_hulang_hy)
  • Hindi mapping: Change analyzer from empty_analyzer to hindi_analyzer
  • Applied consistently across fess.json, _aws/fess.json, and _cloud/fess.json variants

Testing

  • Verify index creation with updated mappings on OpenSearch
  • Confirm multi-language search results are correctly analyzed

Breaking Changes

  • Existing indices will need to be recreated to apply the updated analyzer configurations

🤖 Generated with Claude Code

…dex mappings

Fix English analyzer filter ordering and add missing stemmer/stopword filters.
Add missing keyword filters for German, Persian, Romanian, and Thai analyzers.
Correct dynamic template names (lang_ca→lang_ckb-iq, lang_en→lang_en-ie, lang_hu→lang_hy)
and fix Hindi analyzer from empty_analyzer to hindi_analyzer.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@marevol marevol self-assigned this Mar 15, 2026
@marevol marevol added this to the 15.6.0 milestone Mar 15, 2026
@marevol marevol merged commit 5be1c57 into master Mar 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant