From 7a80b753501796ac897ce30d5893800fd0d98861 Mon Sep 17 00:00:00 2001 From: martinstibbe <33664051+martinstibbe@users.noreply.github.com> Date: Tue, 1 Nov 2022 08:30:46 -0500 Subject: [PATCH] Correct example in test to use arrays and minGram parameter error (#891) --- .../resource_mongodbatlas_search_index_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mongodbatlas/resource_mongodbatlas_search_index_test.go b/mongodbatlas/resource_mongodbatlas_search_index_test.go index 7fd2901349..6ce13d32d8 100644 --- a/mongodbatlas/resource_mongodbatlas_search_index_test.go +++ b/mongodbatlas/resource_mongodbatlas_search_index_test.go @@ -270,20 +270,20 @@ func testAccMongoDBAtlasSearchIndexConfigAdvanced(projectID, clusterName string) analyzers = <<-EOF [{ "name": "index_analyzer_test_name", - "charFilters": { + "charFilters": [{ "type": "mapping", "mappings": {"\\" : "/"} - }, - "tokenizer": { + }], + "tokenizer": [{ "type": "nGram", - "min_gram": 2, - "max_gram": 5 - }, - "tokenFilters": { + "minGram": 2, + "maxGram": 5 + }], + "tokenFilters": [{ "type": "length", "min": 20, "max": 33 - } + }] }] EOF }