From f8d1296f01a943d0daf562a51224c5acc0193a60 Mon Sep 17 00:00:00 2001 From: cloudant-sdks-automation <71659186+cloudant-sdks-automation@users.noreply.github.com> Date: Tue, 29 Jul 2025 12:39:20 +0000 Subject: [PATCH] fix(generated): use correct setters/constants in postIndex examples Generated SDK source code using: - Generator version 3.106.0 - Specification version 1.0.0-dev0.1.28 - Automation (cloudant-sdks) version dfe7806 --- examples/README.md | 4 ++-- .../postIndex/example_request_using_text_type_index.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/README.md b/examples/README.md index c2d951b9f..942abda15 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1904,8 +1904,8 @@ Cloudant service = Cloudant.newInstance(); // Type "text" index fields require an object with a name and type properties for the field. IndexField field = new IndexField.Builder() - .add("name", "address") - .add("type", "string") + .name("address") + .type(IndexField.Type.STRING) .build(); IndexDefinition indexDefinition = new IndexDefinition.Builder() diff --git a/examples/snippets/postIndex/example_request_using_text_type_index.java b/examples/snippets/postIndex/example_request_using_text_type_index.java index 5dc4af9cc..21df8fefe 100644 --- a/examples/snippets/postIndex/example_request_using_text_type_index.java +++ b/examples/snippets/postIndex/example_request_using_text_type_index.java @@ -9,8 +9,8 @@ // Type "text" index fields require an object with a name and type properties for the field. IndexField field = new IndexField.Builder() - .add("name", "address") - .add("type", "string") + .name("address") + .type(IndexField.Type.STRING) .build(); IndexDefinition indexDefinition = new IndexDefinition.Builder()