diff --git a/examples/README.md b/examples/README.md index 0018942f..9673e113 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1405,7 +1405,7 @@ service = CloudantV1.new_instance() # Type "text" index fields require an object with a name and type properties for the field. index_field = IndexField( name="address", - type="string" + type=IndexField.TypeEnum.STRING ) index = IndexDefinition( fields=[index_field] diff --git a/examples/snippets/postIndex/example_request_using_text_type_index.py b/examples/snippets/postIndex/example_request_using_text_type_index.py index 0d085675..6c3e21f8 100644 --- a/examples/snippets/postIndex/example_request_using_text_type_index.py +++ b/examples/snippets/postIndex/example_request_using_text_type_index.py @@ -6,7 +6,7 @@ # Type "text" index fields require an object with a name and type properties for the field. index_field = IndexField( name="address", - type="string" + type=IndexField.TypeEnum.STRING ) index = IndexDefinition( fields=[index_field]