HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //usr/lib/python3.9/site-packages/redis/commands/search/__pycache__/result.cpython-39.pyc
a

��b7�@s*ddlmZddlmZGdd�d�ZdS)�)�	to_string)�Documentc@s"eZdZdZd	dd�Zdd�ZdS)
�Resultz[
    Represents the result of a search query, and has an array of Document
    objects
    �FcCs�|d|_||_g|_d}|r&|d}|r2|d}|r>|d}|rFdnd}tdt|�|�D�]*}t||�}	|r�t|||�nd}
|r�|dn|}|r�t||d�nd}i}
|r�|r�tttt	t|||ddd��t	t|||ddd�����ni}
z
|
d=Wnt
�yYn0z|
d|
d<|
d=Wnt
�yHYn0|�rft|	f||
d�|
��nt|	fd	|
i|
��}|j�|�qZdS)
zy
        - **snippets**: An optional dictionary of the form
        {field: snippet_size} for snippet formatting
        rr�N�id�$Zjson)�score�payloadr
)
�total�duration�docs�range�lenr�float�dict�zip�map�KeyErrorr�append)�self�resZ
hascontentrZhas_payloadZwith_scores�step�offset�irr
Z
fields_offsetr	�fields�doc�r�@/usr/lib/python3.9/site-packages/redis/commands/search/result.py�__init__sV

����	�

��zResult.__init__cCsd|j�d|j�d�S)NzResult{z total, docs: �})rr
)rrrr�__repr__HszResult.__repr__N)rFF)�__name__�
__module__�__qualname__�__doc__rr!rrrrrs�
=rN)Z_utilrZdocumentrrrrrr�<module>s