You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/python-api.rst
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2141,7 +2141,9 @@ You can create an index on a table using the ``.create_index(columns)`` method.
2141
2141
2142
2142
db["dogs"].create_index(["is_good_dog"])
2143
2143
2144
-
By default the index will be named ``idx_{table-name}_{columns}``-if you want to customize the name of the created index you can pass the ``index_name`` parameter:
2144
+
By default the index will be named ``idx_{table-name}_{columns}``. If you pass``find_unique_name=True``and the automatically derived name already exists, an available name will be found by incrementing a suffix number, for example ``idx_items_title_2``.
2145
+
2146
+
You can customize the name of the created index by passing the ``index_name`` parameter:
0 commit comments