Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down