
    Pf                           G d  d          Z dS )c                   &    e Zd ZdZddZd Zd ZdS )Documentz6
    Represents a single document in a result set
    Nc                 x    || _         || _        |                                D ]\  }}t          | ||           d S N)idpayloaditemssetattr)selfr   r   fieldskvs         P/var/www/html/env/lib/python3.11/site-packages/redis/commands/search/document.py__init__zDocument.__init__   sJ    LLNN 	  	 DAqD!Q	  	     c                     d| j          S )Nz	Document )__dict__)r
   s    r   __repr__zDocument.__repr__   s    *4=***r   c                 &    t          | |          }|S r   )getattr)r
   itemvalues      r   __getitem__zDocument.__getitem__   s    d##r   r   )__name__
__module____qualname____doc__r   r   r    r   r   r   r      sP                + + +    r   r   N)r   r   r   r   <module>r      s7            r   