terraform-provider-elasticstack icon indicating copy to clipboard operation
terraform-provider-elasticstack copied to clipboard

[Bug] unable to create index with analyzer and normalizer in setting sections

Open sangeethdba opened this issue 3 years ago • 3 comments

Describe the bug unable to create index with analyzer and normalizer in setting sections

Expected behavior need an example of index creation which has custom normalizer and analyzer define

Versions (please complete the following information):

  • OS: [e.g. Linux]
  • Terraform Version [e.g. 1.0.0]
  • Provider version [e.g. v0.1.0]
  • Elasticsearch Version [e.g. 7.16.0]

Additional context Add any other context about the problem here.

sangeethdba avatar Jun 09 '22 16:06 sangeethdba

settings { setting { name = "index.number_of_shards" value = "1" } setting { name = "index.number_of_replicas" value = "1" } setting { name = "index.search.idle.after" value = "20s" } analysis { normalizer { lowercase_normalizer = { "type" = "custom", "filter" = [ "lowercase", "asciifolding" ] }

sangeethdba avatar Jun 29 '22 15:06 sangeethdba

@spinscale would you please check this

sangeethdba avatar Jun 29 '22 16:06 sangeethdba

╷ │ Error: Unsupported block type │ │ on test_1.tf line 712, in resource "elasticstack_elasticsearch_index" "idx_qa_7": │ 712: analysis { │ │ Blocks of type "analysis" are not expected here.

sangeethdba avatar Jun 29 '22 16:06 sangeethdba

Fixed as part of https://github.com/elastic/terraform-provider-elasticstack/pull/137

tobio avatar Sep 15 '22 12:09 tobio