Skip to content

Commit bc0bb9d

Browse files
authored
Merge branch 'main' into dependabot-github_actions-github-codeql-action-3.29.4
2 parents e1a11c8 + c047423 commit bc0bb9d

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)