Skip to content

Add serverless index create body filter - #354

Open
tomthorogood wants to merge 6 commits into
mainfrom
tomthorogood-serverless-create-request-filter
Open

tomthorogood wants to merge 6 commits into
mainfrom
tomthorogood-serverless-create-request-filter

Conversation

@tomthorogood

@tomthorogood tomthorogood commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Adds ServerlessHelper#filter_payload_for_serverless(:create, payload), included in Index, to remove settings that Elasticsearch Serverless rejects.

Tom Thorogood and others added 6 commits November 25, 2026 07:13
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@tomthorogood
tomthorogood marked this pull request as ready for review November 25, 2026 17:33
Copilot AI adaptive review requested due to automatic review settings November 25, 2026 17:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the opt-in helper that filters unsupported Elasticsearch Serverless index settings.

No open issues 🎉

What changed in this PR

Adds an opt-in helper to filter unsupported Elasticsearch Serverless settings from index creation payloads, without changing existing Index#create behavior.

Changes:

  • Removes listed unsupported settings in nested or dotted forms while preserving other payload content.
  • Includes ServerlessHelper in the index client.
  • Adds tests for filtering and rejection of unsupported actions.
File Description
test/​client/​index_test.rb Tests mixed-key filtering, preservation of supported content, and invalid actions.
lib/​elastomer_client/​client/​serverless_helper.rb Defines the unsupported settings list and recursive payload filter.
lib/​elastomer_client/​client/​index.rb Loads and includes the helper in Index.

Review effort: Balanced (adaptive)

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.

3 participants