Skip to content

Commit 81aa85d

Browse files
authored
Merge pull request #96 from sanders41/sanders41-patch-1
Fixing typos
2 parents 598a11a + 7463628 commit 81aa85d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ For the most part this client mirrors the functionality of the official client a
3838

3939
3. The async client uses [Pydantic](https://pydantic-docs.helpmanual.io/) to serialize/deserialize the JSON from MeiliSearch into Python objects wherever possible, and in the process converts the camelCaseNames from JSON into more Pythonic snake_case_names. The official client instead uses dictionaries to store the return values in most cases.
4040

41-
In some instances it is not possible to return the data as an object, becase the structure will be dependant on your particular dataset and can't
41+
In some instances it is not possible to return the data as an object because the structure will be dependant on your particular dataset and can't
4242
be known ahead of time. In these instances you can either work with the data in the dictionary that is returned, or because you will know the
4343
structure you can generate your own Classes.
4444

@@ -61,7 +61,7 @@ class Movie(CamelBase):
6161
poster: str
6262
overview: str
6363
release_date: datetime
64-
genre: Optional[str]
64+
genre: Optional[str] = None
6565

6666

6767
async with Client("http://127.0.0.1:7700", "masterKey") as client:
@@ -128,7 +128,7 @@ async with Client('http://127.0.0.1:7700', 'masterKey') as client:
128128
await index.add_documents(documents)
129129
```
130130

131-
The server will return a update id that can be used to [get the status](https://docs.meilisearch.com/reference/api/updates.html#get-an-update-status)
131+
The server will return an update id that can be used to [get the status](https://docs.meilisearch.com/reference/api/updates.html#get-an-update-status)
132132
of the updates. To do this you would save the result response from adding the documets to a variable,
133133
this will be a UpdateId object, and use it to check the status of the updates.
134134

@@ -154,7 +154,7 @@ async with Client('http://127.0.0.1:7700', 'masterKey') as client:
154154
...
155155
]
156156

157-
await index.add_documents_in_batches(documents, batch_size=20)
157+
await index.add_documents_in_batches(documents, batch_size=100)
158158
```
159159

160160
The server will return a list of update ids that can be used to [get the status](https://docs.meilisearch.com/reference/api/updates.html#get-an-update-status)

0 commit comments

Comments
 (0)