Skip to content

fix(index): lowercase the index prefix - #228

Merged
damienalexandre merged 1 commit into
masterfrom
issue-220
Sep 26, 2026
Merged

damienalexandre merged 1 commit into
masterfrom
issue-220

Conversation

@lyrixx

@lyrixx lyrixx commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Fix #220

Elasticsearch only accepts lowercase index names, so a prefix like MyApp could never create any index. IndexNameMapper now lowercases the prefix in its constructor (same signature).

Index names themselves (keys of index_class_mapping) are left untouched, as lowercasing them would break the index → class lookup.

No BC break: an uppercase prefix never worked.

Test plan

  • New test in IndexNameMapperTest
  • CI

Elasticsearch only accepts lowercase index names.

Fix #220
@damienalexandre
damienalexandre merged commit 43e7736 into master Sep 26, 2026
11 checks passed
@damienalexandre
damienalexandre deleted the issue-220 branch September 26, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apply Lowercase on index prefix automaticaly?

2 participants