diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/elasticsearch/TestCaseIndex.java b/openmetadata-service/src/main/java/org/openmetadata/service/elasticsearch/TestCaseIndex.java index 724fff2ed15..452275b988d 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/elasticsearch/TestCaseIndex.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/elasticsearch/TestCaseIndex.java @@ -16,6 +16,8 @@ import org.openmetadata.service.util.JsonUtils; public class TestCaseIndex implements ElasticSearchIndex { TestCase testCase; + private static final List excludeFields = List.of("changeDescription"); + public TestCaseIndex(TestCase testCase) { this.testCase = testCase; } @@ -31,6 +33,7 @@ public class TestCaseIndex implements ElasticSearchIndex { List testSuiteArray = new ArrayList<>(); testSuiteArray.add(testSuite); Map doc = JsonUtils.getMap(testCase); + ElasticSearchIndexUtils.removeNonIndexableFields(doc, excludeFields); doc.put("testSuites", testSuiteArray); return doc; }