|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /usr/lib/python3.9/site-packages/redis/commands/search/__pycache__/ |
a
��b#( � @ sN G d d� d�Z G dd� d�ZG dd� de�ZG dd� de�ZG dd � d �Zd
S )c @ s� e Zd ZdZdd� Zdd� Zdd� Zdd � Zd7dd�Zd
d� Z d8dd�Z
d9dd�Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd-d.� Zd:d0d1�Zd2d3� Zed d4�d5d6�Zd
S );�QueryaB
Query is used to build complex queries that have more parameters than just
the query string. The query string is set in the constructor, and other
options have setter functions.
The setter functions return the query object, so they can be chained,
i.e. `Query("foo").verbatim().filter(...)` etc.
c C s� || _ d| _d| _d| _d| _d| _d| _d| _d| _d| _ t
� | _d| _d| _
d| _d| _g | _g | _g | _d| _d| _d| _dS )z�
Create a new query object.
The query string is set in the constructor, and other options have
setter functions.
� �
FN���)�
_query_string�_offset�_num�_no_content�
_no_stopwords�_fields� _verbatim�_with_payloads�_with_scores�_scorer�list�_filters�_ids�_slop� _in_order�_sortby�_return_fields�_summarize_fields�_highlight_fields� _language� _expander�_dialect)�self�query_string� r �?/usr/lib/python3.9/site-packages/redis/commands/search/query.py�__init__ s* zQuery.__init__c C s | j S )z+Return the query string of this query only.)r �r r r r r ( s zQuery.query_stringc G s
|| _ | S )zTLimit the results to a specific set of pre-known document
ids of any length.)r )r Zidsr r r � limit_ids, s zQuery.limit_idsc G s | j |7 _ | S )zAdd fields to return fields.)r �r �fieldsr r r �
return_fields2 s zQuery.return_fieldsNc C s* | j �|� |dur&| j d|f7 _ | S )zJAdd field to return fields (Optional: add 'AS' name
to the field).NZAS)r �append)r �fieldZas_fieldr r r �return_field7 s zQuery.return_fieldc C s |sg S t |t�r|gS t|�S �N)�
isinstance�strr r"