diff --git a/indexclient/client.py b/indexclient/client.py index 17ea7dec..e7b8455b 100644 --- a/indexclient/client.py +++ b/indexclient/client.py @@ -119,7 +119,8 @@ def get_with_params(self, params=None): if not response.json()['records']: return None json = response.json()['records'][0] - return Document(self, json=json) + did = json['did'] + return Document(self, did, json=json) def list(self, limit=float("inf"), start=None, page_size=100): """ Returns a generator of document objects. """