@@ -27,15 +27,15 @@ on fields ``_from`` and ``_to``. For more information on indexes, refer to
2727 # List the indexes in the collection.
2828 cities.indexes()
2929
30- # Add a new hash index on document fields "continent" and "country".
31- index = cities.add_hash_index (fields=['continent', 'country'], unique=True)
30+ # Add a new persistent index on document fields "continent" and "country".
31+ index = cities.add_persistent_index (fields=['continent', 'country'], unique=True)
3232
3333 # Add new fulltext indexes on fields "continent" and "country".
3434 index = cities.add_fulltext_index(fields=['continent'])
3535 index = cities.add_fulltext_index(fields=['country'])
3636
37- # Add a new skiplist index on field 'population'.
38- index = cities.add_skiplist_index (fields=['population'], sparse=False)
37+ # Add a new persistent index on field 'population'.
38+ index = cities.add_persistent_index (fields=['population'], sparse=False)
3939
4040 # Add a new geo-spatial index on field 'coordinates'.
4141 index = cities.add_geo_index(fields=['coordinates'])
@@ -47,7 +47,7 @@ on fields ``_from`` and ``_to``. For more information on indexes, refer to
4747 index = cities.add_ttl_index(fields=['currency'], expiry_time=200)
4848
4949 # Indexes may be added with a name that can be referred to in AQL queries.
50- index = cities.add_hash_index (fields=['country'], name='my_hash_index ')
50+ index = cities.add_persistent_index (fields=['country'], name='my_persistent_index ')
5151
5252 # Delete the last index from the collection.
5353 cities.delete_index(index['id'])
0 commit comments