We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7323be commit 3ba2ef2Copy full SHA for 3ba2ef2
src/typesense/document.py
@@ -68,7 +68,10 @@ def __init__(
68
self.collection_name = collection_name
69
self.document_id = document_id
70
71
- def retrieve(self, params: RetrieveParameters) -> TDoc:
+ def retrieve(
72
+ self,
73
+ retrieve_parameters: typing.Union[RetrieveParameters, None] = None,
74
+ ) -> TDoc:
75
"""
76
Retrieve this specific document.
77
@@ -79,7 +82,7 @@ def retrieve(self, params: RetrieveParameters) -> TDoc:
79
82
endpoint=self._endpoint_path,
80
83
entity_type=typing.Dict[str, str],
81
84
as_json=True,
- params=params,
85
+ params=retrieve_parameters,
86
)
87
return response
88
0 commit comments