diff --git a/opensearchorm/session.py b/opensearchorm/session.py index 0820090..fc95997 100644 --- a/opensearchorm/session.py +++ b/opensearchorm/session.py @@ -113,7 +113,7 @@ class QueryExecutor(Generic[Model]): """ model = self.__model_cls hits = self.fetch_fields(model.default_fields()) - return [model.parse_obj(hit['_source']) for hit in hits] + return [model.parse_obj(hit) for hit in hits] def scroll(self, **kwargs): ... diff --git a/pyproject.toml b/pyproject.toml index beaeaac..28d5c02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "opensearch-orm" -version = "0.1.5" +version = "0.1.6" description = "" authors = ["yim7 "] readme = "README.md"