feat: update index configuration#22
Merged
Merged
Conversation
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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.