Skip to content

Commit e05c6ca

Browse files
committed
Simple readme update
1 parent 35bce58 commit e05c6ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ You can check out [the API documentation](https://docs.meilisearch.com/reference
121121
client.create_index('books')
122122
# Create an index and give the primary-key
123123
client.create_index('books', {'primaryKey': 'book_id'})
124+
# Get an index or create it if it doesn't exist
125+
client.get_or_create_index('books', {'primaryKey': 'book_id'})
124126
```
125127

126128
#### List all indexes <!-- omit in toc -->

0 commit comments

Comments
 (0)