From eb5865847f9d059717e2f12b925066fc785cc654 Mon Sep 17 00:00:00 2001 From: Chen Dai Date: Fri, 13 Oct 2023 11:12:52 -0700 Subject: [PATCH] Use fluent API of XContent builder Signed-off-by: Chen Dai --- .../flint/core/metadata/FlintMetadata.scala | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/flint-core/src/main/scala/org/opensearch/flint/core/metadata/FlintMetadata.scala b/flint-core/src/main/scala/org/opensearch/flint/core/metadata/FlintMetadata.scala index d61fc83ea..ea0fb0f98 100644 --- a/flint-core/src/main/scala/org/opensearch/flint/core/metadata/FlintMetadata.scala +++ b/flint-core/src/main/scala/org/opensearch/flint/core/metadata/FlintMetadata.scala @@ -51,11 +51,12 @@ case class FlintMetadata( buildJson(builder => { // Add _meta field objectField(builder, "_meta") { - builder.field("version", version.version) - builder.field("name", name) - builder.field("kind", kind) - builder.field("source", source) - builder.field("indexedColumns", indexedColumns) + builder + .field("version", version.version) + .field("name", name) + .field("kind", kind) + .field("source", source) + .field("indexedColumns", indexedColumns) optionalObjectField(builder, "options", options) optionalObjectField(builder, "properties", properties)