Skip to content

Commit c047423

Browse files
cloudant-sdks-automationeiri
authored andcommitted
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
1 parent 02c3179 commit c047423

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,8 +1904,8 @@ Cloudant service = Cloudant.newInstance();
19041904

19051905
// Type "text" index fields require an object with a name and type properties for the field.
19061906
IndexField field = new IndexField.Builder()
1907-
.add("name", "address")
1908-
.add("type", "string")
1907+
.name("address")
1908+
.type(IndexField.Type.STRING)
19091909
.build();
19101910

19111911
IndexDefinition indexDefinition = new IndexDefinition.Builder()

examples/snippets/postIndex/example_request_using_text_type_index.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
// Type "text" index fields require an object with a name and type properties for the field.
1111
IndexField field = new IndexField.Builder()
12-
.add("name", "address")
13-
.add("type", "string")
12+
.name("address")
13+
.type(IndexField.Type.STRING)
1414
.build();
1515

1616
IndexDefinition indexDefinition = new IndexDefinition.Builder()

0 commit comments

Comments
 (0)