File: //lib/python3.9/site-packages/redis/commands/search/__pycache__/querystring.cpython-39.pyc
a
��bO � @ s, d d� Z d5dd�Zdd� Zdd� Zd d
� Zdd� Zd
d� Zd6dd�ZG dd� d�ZG dd� de�Z G dd� de�Z
G dd� de�ZG dd� de�ZG dd� d�Z
G dd� de
�ZG d d!� d!e
�ZG d"d#� d#e
�ZG d$d%� d%e�ZG d&d'� d'e�ZG d(d)� d)e�Zd*d+� Zd,d-� Zd.d/� Zd0d1� Zd2d3� Zd4S )7c G s | st d��t| � S )zx
Indicate that the values should be matched to a tag field
### Parameters
- **t**: Tags to search for
z"At least one tag must be specified)�
ValueError�TagValue)�t� r �E/usr/lib/python3.9/site-packages/redis/commands/search/querystring.py�tags s r Tc C s t | |||d�S )z0
Indicate that value is a numeric range
)�
inclusive_min�
inclusive_max)�
RangeValue)�a�br r r r r �between s r c C s
t | | �S )z
Match a numeric value
�r ��nr r r �equal s r c C s t d| dd�S )z%
Match any value less than n
NF�r r
r r r r �lt s r c C s t d| dd�S )z,
Match any value less or equal to n
NTr r
r r r r �le# s r c C s t | ddd�S )z(
Match any value greater than n
NF�r r
r r r r �gt* s r c C s t | ddd�S )z/
Match any value greater or equal to n
NTr r
r r r r �ge1 s r �kmc C s t | |||�S )z-
Indicate that value is a geo region
)�GeoValue)�lat�lon�radius�unitr r r �geo8 s r c @ s4 e Zd Zedd� �Zedd� �Zdd� Zdd� Zd S )
�Valuec C s dS )z�
Whether this type of value may be combined with other values
for the same field. This makes the filter potentially more efficient
Fr ��selfr r r �
combinable@ s zValue.combinablec C s t | t�r| S t| �S )zL
Convert an object to a value, if it is not a value already
)�
isinstancer �ScalarValue��vr r r �
make_valueH s
zValue.make_valuec C s
t � �d S �N��NotImplementedErrorr r r r � to_stringQ s zValue.to_stringc C s | � � S r'