Skip to content

Conversation

@tobio
Copy link
Member

@tobio tobio commented Nov 27, 2025

Fixes #333

Seemed like a quick win to test some instruction changes.

@tobio tobio self-assigned this Nov 27, 2025
Copilot AI review requested due to automatic review settings November 27, 2025 12:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for the mapping_total_fields_limit setting to the Elasticsearch index resource, addressing issue #333. This setting controls the maximum number of fields allowed in an index.

  • Adds the mapping_total_fields_limit schema attribute to the index resource
  • Updates the model to include the new field
  • Adds the Elasticsearch setting key to the dynamic settings list
  • Refactors acceptance tests to use external test data files and config variables

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
internal/elasticsearch/index/index/schema.go Adds the mapping_total_fields_limit schema attribute definition
internal/elasticsearch/index/index/models.go Adds the field to the tfModel struct and dynamic settings list
internal/elasticsearch/index/index/acc_test.go Refactors tests to use embedded testdata files and config variables; removes inline config function
internal/elasticsearch/index/index/testdata/TestAccResourceIndexSettings/create/index.tf Creates test configuration file with mapping_total_fields_limit set to 2000
internal/elasticsearch/index/index/testdata/TestAccResourceIndexSettings/update/index.tf Creates test configuration file with mapping_total_fields_limit updated to 3000
internal/elasticsearch/index/index/testdata/TestAccResourceIndexFromSDK/index.tf Creates test configuration file for SDK migration test without the new field
docs/resources/elasticsearch_index.md Adds documentation for the new mapping_total_fields_limit parameter

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.

Support index.mapping.total_fields.limit elasticsearch index setting

2 participants