Skip to content

feat: update index configuration#22

Merged
brunozoric merged 10 commits into
mainfrom
bruno/feat/update-index-configuration
Jun 18, 2026
Merged

feat: update index configuration#22
brunozoric merged 10 commits into
mainfrom
bruno/feat/update-index-configuration

Conversation

@brunozoric

Copy link
Copy Markdown
Contributor

No description provided.

brunozoric and others added 3 commits June 18, 2026 10:48
Allows users to register custom DI services directly in createConfig()
instead of requiring a separate setup.ts file. Runs after setup.ts
(if present) and before preset.configure().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
OsProcessor now delegates index configuration to an injectable provider
instead of calling getBaseConfiguration() directly. Users override via
config.register to customize mappings and settings (e.g.
index.mapping.total_fields.limit) — applied on both index creation and
existing-index update paths.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Populates documentation/README.md with the configurations index and
adds a full README for IndexConfigurationProvider with override examples.
Includes documentation/AGENTS.md for future agents adding new configs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@brunozoric brunozoric self-assigned this Jun 18, 2026
brunozoric and others added 7 commits June 18, 2026 11:01
Every doc page now links back to its parent via a breadcrumb line at
the top. AGENTS.md updated to require breadcrumbs on new pages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Users no longer need to know about getBaseConfiguration() — the base
mappings are passed in by OsProcessor. Default impl is a passthrough.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Prevents user implementations from mutating the shared base reference.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Moves base config retrieval, structuredClone, and provider delegation
into a standalone DI-able resolver. OsProcessor now depends on
IndexConfigurationResolver.resolve(indexName) — no direct knowledge
of getBaseConfiguration() or the provider.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Configuration type now uses OpenSearchIndexRequestBody mappings/settings
from @webiny/api-opensearch instead of Record<string, unknown>. Resolver
also passes through base settings (not just mappings).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Documents ModelProvider, BeforeTransferHook, AfterTransferHook,
BeforeLoadPresetHook, and AfterLoadPresetHook as user-overridable
configurations. Exports all five from the public API.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@brunozoric brunozoric merged commit 9d7c180 into main Jun 18, 2026
7 checks passed
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.

1 participant