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: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ For the most part this client mirrors the functionality of the official client a
38
38
39
39
3. The async client uses [Pydantic](https://pydantic-docs.helpmanual.io/) to serialize/deserialize the JSONfrom MeiliSearch into Python objects wherever possible, andin the process converts the camelCaseNames fromJSON into more Pythonic snake_case_names. The official client instead uses dictionaries to store the return values in most cases.
40
40
41
-
In some instances it isnot 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 isnot possible to return the data as an object because the structure will be dependant on your particular dataset and can't
42
42
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
43
43
structure you can generate your own Classes.
44
44
@@ -61,7 +61,7 @@ class Movie(CamelBase):
61
61
poster: str
62
62
overview: str
63
63
release_date: datetime
64
-
genre: Optional[str]
64
+
genre: Optional[str]=None
65
65
66
66
67
67
asyncwith 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:
128
128
await index.add_documents(documents)
129
129
```
130
130
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)
132
132
of the updates. To do this you would save the result response from adding the documets to a variable,
133
133
this will be a UpdateId object, and use it to check the status of the updates.
134
134
@@ -154,7 +154,7 @@ async with Client('http://127.0.0.1:7700', 'masterKey') as client:
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