@@ -27,15 +27,15 @@ on fields ``_from`` and ``_to``. For more information on indexes, refer to
27
27
# List the indexes in the collection.
28
28
cities.indexes()
29
29
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)
32
32
33
33
# Add new fulltext indexes on fields "continent" and "country".
34
34
index = cities.add_fulltext_index(fields=['continent'])
35
35
index = cities.add_fulltext_index(fields=['country'])
36
36
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)
39
39
40
40
# Add a new geo-spatial index on field 'coordinates'.
41
41
index = cities.add_geo_index(fields=['coordinates'])
@@ -47,7 +47,7 @@ on fields ``_from`` and ``_to``. For more information on indexes, refer to
47
47
index = cities.add_ttl_index(fields=['currency'], expiry_time=200)
48
48
49
49
# 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 ')
51
51
52
52
# Delete the last index from the collection.
53
53
cities.delete_index(index['id'])
0 commit comments