diff options
Diffstat (limited to 'redis/commands/search/document.py')
-rw-r--r-- | redis/commands/search/document.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/redis/commands/search/document.py b/redis/commands/search/document.py index 5b30505..47534ec 100644 --- a/redis/commands/search/document.py +++ b/redis/commands/search/document.py @@ -11,3 +11,7 @@ class Document: def __repr__(self): return f"Document {self.__dict__}" + + def __getitem__(self, item): + value = getattr(self, item) + return value |