
    ci             	        	   d dl Zd dlmZ d dlmZ d dlmZmZm	Z	m
Z
mZmZmZmZmZmZmZmZmZmZmZmZ d dlmZ ddlmZ ddlmZ dd	lmZ erd d
lmZ ddlm Z m!Z! ddl"m#Z#  ed          Z$ edee%ef                   Z& G d dee$                   Z'edee%e&f         ddfd            Z(edd            Z(ede'e$         de$fd            Z(edde%deddfd            Z(	 ddee%de'e$         ee%e&f         f         dedede$f         fdZ( G d de          Z) G d de)          Z* G d d e)          Z+ G d! d"e)          Z, G d# d$e)          Z- G d% d&e)          Z. G d' d(e)          Z/ G d) d*e)          Z0 G d+ d,e)          Z1 G d- d.e)          Z2 G d/ d0e)          Z3 G d1 d2e)          Z4 G d3 d4e)          Z5 G d5 d6e)          Z6 G d7 d8e)          Z7 G d9 d:e)          Z8 G d; d<e)          Z9 G d= d>e)          Z: G d? d@e)          Z; G dA dBe)          Z< G dC dDe)          Z= G dE dFe)          Z> G dG dHe)          Z? e?            Z@ G dI dJe)          ZA G dK dLe)          ZB G dM dNe)          ZC G dO dPe)          ZD G dQ dRe)          ZE G dS dTe)          ZF G dU dVe)          ZG G dW dXe)          ZH G dY dZe)          ZI G d[ d\e)          ZJ G d] d^e)          ZK G d_ d`e)          ZL G da dbe)          ZM G dc dde)          ZN G de dfe)          ZO G dg dhe)          ZP G di dje)          ZQ G dk dle)          ZR G dm dne)          ZS G do dpe)          ZT G dq dre)          ZU G ds dte)          ZV G du dve)          ZW G dw dxe)          ZX G dy dze)          ZY G d{ d|e)          ZZ G d} d~e)          Z[ G d de)          Z\ G d de)          Z] G d de)          Z^ G d de)          Z_ G d de)          Z` G d de)          Za G d de)          Zb G d de)          Zc G d de)          Zd G d de)          Ze G d de)          Zf G d de)          ZgdS )    N)deepcopy)chain)TYPE_CHECKINGAnyCallableClassVarDictListLiteralMappingMutableMappingOptionalProtocolSequenceTypeVarUnioncastoverload)DEFAULT   )SF)ScoreFunction)DslBase)DefaultType)typeswrappers)InstrumentedField_T_M)boundc                       e Zd ZU eed<   dS )QProxiedProtocol_proxiedN)__name__
__module____qualname__r   __annotations__     W/var/www/html/auto_sub_bot/venv/lib/python3.11/site-packages/elasticsearch/dsl/query.pyr"   r"   :   s         LLLLLr)   r"   name_or_queryreturnQueryc                     d S Nr(   r+   s    r*   Qr1   >   s    :=#r)   c                     d S r/   r(   r0   s    r*   r1   r1   B   s    *-#r)   c                     d S r/   r(   r0   s    r*   r1   r1   F   s    25#r)   	match_allparamsc                     d S r/   r(   )r+   r5   s     r*   r1   r1   J   s    CF3r)   c                 .   t          | t          j        j                  r{|rt	          d          t          |           dk    rt	          d| z            t          |                                           \  }}t          	                    |          dddi|S t          | t                    r|rt	          d          | S t          | d          r%t          t          t                   |           j        S t          	                    |           di |S )	Nz4Q() cannot accept parameters when passing in a dict.r   zTQ() can only accept dict with a single query ({"match": {...}}). Instead it got (%r)_expand__to_dotFz<Q() cannot accept parameters when passing in a Query object.r#   r(   )
isinstancecollectionsabcr   
ValueErrorlenr   popitemr-   get_dsl_classhasattrr   r"   r   r#   )r+   r5   nameq_paramss       r*   r1   r1   N   s7    -!?@@ 	L 	USTTT}""&(56   "-0088::h""4((KKK(KKK -''  	N    }j)) B$R(-88AA }--77777r)   c                       e Zd ZU dZ ee          ZdZee	e
                  ed<   eed d gd f                  ed<   eed d gd f                  ed<   eed d gd f                  ed<   dd	Zdd
ZddZddZdS )r-   queryNrA   __ror____radd____rand__otherr,   c                 p    t          |d          r|                    |           S t          | |g          S )NrF   must)r@   rF   BoolselfrH   s     r*   __add__zQuery.__add__}   =     5*%% 	(>>$'''$''''r)   c                 $    t          | g          S )Nmust_not)rL   rN   s    r*   
__invert__zQuery.__invert__   s    dV$$$$r)   c                 p    t          |d          r|                    |           S t          | |g          S )NrE   should)r@   rE   rL   rM   s     r*   __or__zQuery.__or__   s=     5)$$ 	'==&&&D%=))))r)   c                 p    t          |d          r|                    |           S t          | |g          S )NrG   rJ   )r@   rG   rL   rM   s     r*   __and__zQuery.__and__   rP   r)   rH   r-   r,   r-   )r,   r-   )r$   r%   r&   
_type_namestaticmethodr1   _type_shortcutrA   r   r   strr'   r   rO   rU   rY   r[   r(   r)   r*   r-   r-   s   s         J!\!__N$(D(8C=
!((( h17:;<<<<x' 2G ;<====x' 2G ;<====( ( ( (% % % %* * * *( ( ( ( ( (r)   c                       e Zd ZdZdZdddddddddddddZeeeeeeeddeee	e         d	f         d
ee
ed	f         deee	e         d	f         deee	e         d	f         deee	e         d	f         deed	f         deed	f         def fdZdedd fdZeZdedefdZeZede
fd            ZdefdZdedefdZeZ xZS )rL   a%  
    matches documents matching boolean combinations of other queries.

    :arg filter: The clause (query) must appear in matching documents.
        However, unlike `must`, the score of the query will be ignored.
    :arg minimum_should_match: Specifies the number or percentage of
        `should` clauses returned documents must match.
    :arg must: The clause (query) must appear in matching documents and
        will contribute to the score.
    :arg must_not: The clause (query) must not appear in the matching
        documents. Because scoring is ignored, a score of `0` is returned
        for all documents.
    :arg should: The clause (query) should appear in the matching
        document.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    boolrD   Ttypemulti)filterrK   rS   rX   rf   minimum_should_matchrK   rS   rX   boost_namerf   r   rh   rK   rS   rX   ri   rj   kwargsc                J     t                      j        d|||||||d| d S )Nrg   r(   super__init__)
rN   rf   rh   rK   rS   rX   ri   rj   rk   	__class__s
            r*   ro   zBool.__init__   sS     	 		
!5		
 		
 		
 		
 		
 		
 		
r)   rH   r,   c                 6   |                                  }t          |t                    rU|xj        |j        z  c_        |xj        |j        z  c_        |xj        |j        z  c_        |xj        |j        z  c_        n|j                            |           |S r/   )_cloner9   rL   rK   rX   rS   rf   appendrN   rH   qs      r*   rO   zBool.__add__   s    KKMMeT"" 	!FFej FFHH$HHJJ%.(JJHH$HHHFMM%   r)   c                     | |fD ]}t          |t                    rt          |j        |j        |j        t          |dd           f          s||u r| n|}|                                }t          |t                    rQt          |j        |j        |j        t          |dd           f          s |j        	                    |j                   n|j        
                    |           |c S t          | |g          S )Nrh   rW   )r9   rL   anyrK   rS   rf   getattrrr   rX   extendrs   rt   s      r*   rY   zBool.__or__   s    	 	A!T"" 3QXwq:PRV/W/WX, ,  !"U

HHJJeT** 
+3
'=tDD	4 4 
+ HOOEL1111HOOE***D%=))))r)   c                 R    t          | d| j        r| j        s| j        rdnd          S )Nrh   r   r   )rx   rX   rK   rf   rT   s    r*   _min_should_matchzBool._min_should_match   s6    "[ETYE$+EAAA
 
 	
r)   c                    t          t          | j        | j        | j        | j                            st                      S g }t          | j        | j                  D ]}|                    |            | j        D ]}|                    |           | j        r7| j        r0|                    t          | j        d d                               t          |          dk    r|d         S t          |          S )NrR   r   r   rW   )rw   r   rK   rf   rX   rS   	MatchNoners   r{   rL   r=   )rN   	negationsru   s      r*   rU   zBool.__invert__   s     5DKdmLLMM 	;;!#	ty$+.. 	! 	!AaR     	  	 AQ; 	<41 	<T4;qqq>:::;;;y>>QQ<9%%%%r)   c                 r   |                                  }t          |t                    rB|xj        |j        z  c_        |xj        |j        z  c_        |xj        |j        z  c_        g |_        d|j        v r|j        d= | |fD ]}|j        }t          |t                    r|dk     rt          d          t          |j                  |k    r |j                            |j                   k|j        s||_        |j        |_        |j        dk    r&|dk    r |j                            |j                   |j                            t          |j        |                     nJ|j        s)|j        s"|j        r|j                            dd           |j                            |           |S )Nrh   r   zNCan only combine queries with positive integer values for minimum_should_match)rX   rh   r   )rr   r9   rL   rK   rS   rf   rX   _paramsr{   intr<   r=   ry   rh   rs   
setdefault)rN   rH   ru   qxmin_should_matchs        r*   r[   zBool.__and__  s   KKMMeT"" $	!FFej FFJJ%.(JJHH$HHAH &22I45Um  #%#7  ""2C88 <Lq<P<P$h   ry>>%555FMM"),,,, 
-=A*!yAHH(A--2Ba2G2GHOOBI.... FMMBIDTUUU   )0 F @ah @AH @	$$%;Q???FMM%   r)   )r$   r%   r&   __doc__rA   _param_defsr   r   r-   r   r   r`   floatr   ro   rO   rF   rY   rE   propertyr{   rU   r[   rG   __classcell__rp   s   @r*   rL   rL      s	        , D"T22 400$t44"T22	 K @G?F=DAH?F-4+2
 
 
 eXe_m;<
 $Cm$;<	

 E8E?M9:
 x=>
 eXe_m;<
 UM)*
 S-'(
 
 
 
 
 
 
.	U 	v 	 	 	 	 H*E *e * * * *, G
3 
 
 
 X
&E & & & &('U 'u ' ' ' 'R HHHHHr)   rL   c                        e Zd ZdZdZddiddidZeeeeeddeedf         d	ee	df         d
ee	df         deedf         dee
df         def fdZ xZS )BoostingaZ  
    Returns documents matching a `positive` query while reducing the
    relevance score of documents that also match a `negative` query.

    :arg negative_boost: (required) Floating point number between 0 and
        1.0 used to decrease the relevance scores of documents matching
        the `negative` query.
    :arg negative: (required) Query used to decrease the relevance score
        of matching documents.
    :arg positive: (required) Any returned documents must match this
        query.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    boostingrd   rD   )negativepositivenegative_boostr   r   ri   rj   r   r   r   r   ri   rj   rk   c          	      F     t                      j        d|||||d| d S )Nr   r(   rm   )rN   r   r   r   ri   rj   rk   rp   s          r*   ro   zBoosting.__init__S  sM     	 	
)	
 	
 	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r   r   r-   r`   r   ro   r   r   s   @r*   r   r   9  s         & DW%W% K 7>0707-4+2
 
 
 e]23
 },-	

 },-
 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r   c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
Commonzf
    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    common_fieldr   r   _valueztypes.CommonTermsQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S Nr(   r   r`   rn   ro   rN   r   r   rk   rp   s       r*   ro   zCommon.__init__o  C       "(F3v;;""6"""""r)   r$   r%   r&   r   rA   r   r   r`   r	   r   ro   r   r   s   @r*   r   r   g  s         
 D BI 
# 
#c.=>
# $d38nmC

# 
# 
# 
# 
# 
# 
# 
# 
# 
# 
#r)   r   c                       e Zd ZdZdZeeeeeeeeddeeeedf                  df         deedf         dee	df         d	ee
d
         df         deeedf         dee
d         df         deedf         deedf         def fdZ xZS )CombinedFieldsa  
    The `combined_fields` query supports searching multiple text fields as
    if their contents had been indexed into one combined field.

    :arg fields: (required) List of fields to search. Field wildcard
        patterns are allowed. Only `text` fields are supported, and they
        must all have the same search `analyzer`.
    :arg query: (required) Text to search for in the provided `fields`.
        The `combined_fields` query analyzes the provided text before
        performing a search.
    :arg auto_generate_synonyms_phrase_query: If true, match phrase
        queries are automatically created for multi-term synonyms.
        Defaults to `True` if omitted.
    :arg operator: Boolean logic used to interpret text in the query
        value. Defaults to `or` if omitted.
    :arg minimum_should_match: Minimum number of clauses that must match
        for a document to be returned.
    :arg zero_terms_query: Indicates whether no documents are returned if
        the analyzer removes all tokens, such as when using a `stop`
        filter. Defaults to `none` if omitted.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    combined_fieldsfieldsrD   #auto_generate_synonyms_phrase_queryoperatorrh   zero_terms_queryri   rj   r   r   r   rD   r   r   )orandrh   r   )noneallri   rj   rk   c                L     t                      j        d||||||||d|	 d S )Nr   r(   rm   )rN   r   rD   r   r   rh   r   ri   rj   rk   rp   s             r*   ro   zCombinedFields.__init__  sV     	 
	
0S!5-
	
 
	
 
	
 
	
 
	
 
	
 
	
r)   )r$   r%   r&   r   rA   r   r   r   r`   rb   r   r   r   r   ro   r   r   s   @r*   r   r   |  s;        8 D +2JQ?F?FIP-4+2
 
 
 U3 3345}D

 S-'(
 .343F-G
 ,m;<
 $Cm$;<
   6 EF
 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r   c            	       ~     e Zd ZdZdZdddiiZeeeddeedf         dee	df         d	ee
df         d
ef fdZ xZS )ConstantScorea  
    Wraps a filter query and returns every matching document with a
    relevance score equal to the `boost` parameter value.

    :arg filter: (required) Filter query you wish to run. Any returned
        documents must match this query. Filter queries do not calculate
        relevance scores. To speed up performance, Elasticsearch
        automatically caches frequently used filter queries.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    constant_scorerf   rd   rD   rf   ri   rj   r   ri   rj   rk   c                B     t                      j        d|||d| d S )Nr   r(   rm   )rN   rf   ri   rj   rk   rp   s        r*   ro   zConstantScore.__init__  1     	Ke5KKFKKKKKr)   r$   r%   r&   r   rA   r   r   r   r-   r   r`   r   ro   r   r   s   @r*   r   r     s           D67#K /6-4+2L L L e]*+L UM)*	L
 S-'(L L L L L L L L L L Lr)   r   c                        e Zd ZdZdZddddiZeeeeddeee	         df         d	ee
df         d
ee
df         deedf         def
 fdZ xZS )DisMaxa-  
    Returns documents matching one or more wrapped queries, called query
    clauses or clauses. If a returned document matches multiple query
    clauses, the `dis_max` query assigns the document the highest
    relevance score from any matching clause, plus a tie breaking
    increment for any additional matching subqueries.

    :arg queries: (required) One or more query clauses. Returned documents
        must match one or more of these queries. If a document matches
        multiple queries, Elasticsearch uses the highest relevance score.
    :arg tie_breaker: Floating point number between 0 and 1.0 used to
        increase the relevance scores of documents matching multiple query
        clauses.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    dis_maxqueriesrD   Trc   r   tie_breakerri   rj   r   r   ri   rj   rk   c                D     t                      j        d||||d| d S )Nr   r(   rm   )rN   r   r   ri   rj   rk   rp   s         r*   ro   zDisMax.__init__  sE     	 	
E	
 	
RX	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r   r   r-   r   r`   r   ro   r   r   s   @r*   r   r     s         * DGd33K :A3:-4+2
 
 
 x56
 5-/0	

 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r   c                        e Zd ZdZdZeeeeeddededeeddf         d	ee	df         d
eedf         def fdZ
 xZS )DistanceFeaturea`  
    Boosts the relevance score of documents closer to a provided origin
    date or point. For example, you can use this query to give more weight
    to documents closer to a certain date or location.

    :arg origin: (required) Date or point of origin used to calculate
        distances. If the `field` value is a `date` or `date_nanos` field,
        the `origin` value must be a date. Date Math, such as `now-1h`, is
        supported. If the field value is a `geo_point` field, the `origin`
        value must be a geopoint.
    :arg pivot: (required) Distance from the `origin` at which relevance
        scores receive half of the `boost` value. If the `field` value is
        a `date` or `date_nanos` field, the `pivot` value must be a time
        unit, such as `1h` or `10d`. If the `field` value is a `geo_point`
        field, the `pivot` value must be a distance unit, such as `1km` or
        `12m`.
    :arg field: (required) Name of the field used to calculate distances.
        This field must meet the following criteria: be a `date`,
        `date_nanos` or `geo_point` field; have an `index` mapping
        parameter value of `true`, which is the default; have an
        `doc_values` mapping parameter value of `true`, which is the
        default.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    distance_featureoriginpivotfieldri   rj   r   r   r   r   r   ri   rj   rk   c          	      F     t                      j        d|||||d| d S )Nr   r(   rm   )rN   r   r   r   ri   rj   rk   rp   s          r*   ro   zDistanceFeature.__init__"  sG     	 	
e5	
 	
QW	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r   r`   r   ro   r   r   s   @r*   r   r     s         < D
 @G-4+2
 
 
 
 	

 S-}<=
 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r   c            	       t     e Zd ZdZdZeeeddeeddf         deedf         deedf         d	e	f fd
Z
 xZS )Existsa  
    Returns documents that contain an indexed value for a field.

    :arg field: (required) Name of the field you wish to search.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    existsr   ri   rj   r   r   r   ri   rj   rk   c                B     t                      j        d|||d| d S )Nr   r(   rm   )rN   r   ri   rj   rk   rp   s        r*   ro   zExists.__init__@  1     	IuEII&IIIIIr)   r$   r%   r&   r   rA   r   r   r`   r   r   ro   r   r   s   @r*   r   r   1  s        
 
 D
 AH-4+2J J J S-}<=J UM)*	J
 S-'(J J J J J J J J J J Jr)   r   c                       e Zd ZdZdZdddddiddidZeeeeeeeed	d
eed         df         dee	e
         df         deedf         deedf         deedf         deed         df         deedf         deedf         def fdZ xZS )FunctionScoreaS  
    The `function_score` enables you to modify the score of documents that
    are retrieved by a query.

    :arg boost_mode: Defines how he newly computed score is combined with
        the score of the query Defaults to `multiply` if omitted.
    :arg functions: One or more functions that compute a new score for
        each document returned by the query.
    :arg max_boost: Restricts the new score to not exceed the provided
        limit.
    :arg min_score: Excludes documents that do not meet the provided score
        threshold.
    :arg query: A query that determines the documents for which a new
        score is computed.
    :arg score_mode: Specifies how the computed scores are combined
        Defaults to `multiply` if omitted.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    function_scorescore_functionTrc   rd   rD   )	functionsrD   rf   
boost_moder   	max_boost	min_scorerD   
score_moderi   rj   r   )multiplyreplacesumavgmaxminr   r   r   r   r   )r   r   r   firstr   r   ri   rj   rk   c                    |t           u r?g }t          j        D ]0}
|
|	v r*|                    |
|	                    |
          i           1 t                      j        d||||||||d|	 d S )Nr   r(   )r   r   _classesrs   poprn   ro   )rN   r   r   r   r   rD   r   ri   rj   rk   rA   rp   s              r*   ro   zFunctionScore.__init__k  s    " I%. ? ?6>>$$dFJJt,<,<%=>>> 
	
!!
	
 
	
 
	
 
	
 
	
 
	
 
	
r)   )r$   r%   r&   r   rA   r   r   r   r   r   r   r   r-   r`   r   ro   r   r   s   @r*   r   r   K  s\        0 D.>>'"7# K CJ1818-4 -4+2 
  
  
 EFU
 
 -0-?@ 
 -. 
 -. 
 UM)* 
 CDmS
 
 UM)* 
 S-'( 
  
  
  
  
  
  
  
  
  
  
r)   r   c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
Fuzzyz
    Returns documents that contain terms similar to the search term, as
    measured by a Levenshtein edit distance.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    fuzzyr   r   r   r   ztypes.FuzzyQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zFuzzy.__init__  C       "(F3v;;""6"""""r)   r   r   s   @r*   r   r               D BIKR# #c.=># ($sCx.-GH# 	# # # # # # # # # #r)   r   c                        e Zd ZdZdZeefeeeeeddeeddf         dedd	d
deee	f         df         dee
d         df         dee
d         df         deedf         deedf         deedf         de	f fdZ xZS )GeoBoundingBoxa  
    Matches geo_point and geo_shape values that intersect a bounding box.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    :arg type:
    :arg validation_method: Set to `IGNORE_MALFORMED` to accept geo points
        with invalid latitude or longitude. Set to `COERCE` to also try to
        infer correct latitude or longitude. Defaults to `'strict'` if
        omitted.
    :arg ignore_unmapped: Set to `true` to ignore an unmapped field and
        not match any documents for this query. Set to `false` to throw an
        exception if the field is not mapped.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    geo_bounding_boxrd   validation_methodignore_unmappedri   rj   r   r   r   r   ztypes.CoordsGeoBoundsz!types.TopLeftBottomRightGeoBoundsz!types.TopRightBottomLeftGeoBoundsztypes.WktGeoBoundsrd   )memoryindexedr   coerceignore_malformedstrictr   ri   rj   rk   c          	      |    |t           ur||t          |          <    t                      j        d|||||d| d S )Nr   r(   r   )
rN   r   r   rd   r   r   ri   rj   rk   rp   s
            r*   ro   zGeoBoundingBox.__init__  sh    *   "(F3v;; 	
/+	
 	
 	
 	
 	
 	
 	
r)   r$   r%   r&   r   rA   r   r   r`   r	   r   r   rb   r   ro   r   r   s   @r*   r   r     s>        * D BI 
 DK 6=-4+2%
 
 
c.=>
 #// cN

 G/0-?@
 !:;]J

  t]23!
" UM)*#
$ S-'(%
& '
 
 
 
 
 
 
 
 
 
r)   r   c                        e Zd ZdZdZeefeeeeeeddeeddf         dedd	ee	         ee
eef         df         d
eedf         deed         df         deed         df         deedf         dee	df         deedf         def fdZ xZS )GeoDistanceaD  
    Matches `geo_point` and `geo_shape` values within a given distance of
    a geopoint.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    :arg distance: (required) The radius of the circle centred on the
        specified location. Points which fall into this circle are
        considered to be matches.
    :arg distance_type: How to compute the distance. Set to `plane` for a
        faster calculation that's inaccurate on long distances and close
        to the poles. Defaults to `'arc'` if omitted.
    :arg validation_method: Set to `IGNORE_MALFORMED` to accept geo points
        with invalid latitude or longitude. Set to `COERCE` to also try to
        infer correct latitude or longitude. Defaults to `'strict'` if
        omitted.
    :arg ignore_unmapped: Set to `true` to ignore an unmapped field and
        not match any documents for this query. Set to `false` to throw an
        exception if the field is not mapped.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    geo_distancedistancedistance_typer   r   ri   rj   r   r   r   r   ztypes.LatLonGeoLocationztypes.GeoHashLocationr   r   )arcplaner   r   r   ri   rj   rk   c          
      ~    |t           ur||	t          |          <    t                      j        d||||||d|	 d S )Nr   r(   r   )rN   r   r   r   r   r   r   ri   rj   rk   rp   s             r*   ro   zGeoDistance.__init__  sk    ,   "(F3v;; 	
'/+	
 	
 	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r`   r   r   r	   r   r   rb   ro   r   r   s   @r*   r   r     sV        6 D BI  
 /6GN 6=-4+2' 
  
  
c.=> 
 %#UOcN
 
 ]*+ 
 W^4mCD 
 !:;]J
 
" t]23# 
$ UM)*% 
& S-'(' 
( ) 
  
  
  
  
  
  
  
  
  
r)   r   c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
GeoGridz
    Matches `geo_point` and `geo_shape` values that intersect a grid cell
    from a GeoGrid aggregation.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    geo_gridr   r   r   r   ztypes.GeoGridQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zGeoGrid.__init__)  r   r)   r   r   s   @r*   r   r     s          D BIMT# #c.=># *DcNMIJ# 	# # # # # # # # # #r)   r   c                        e Zd ZdZdZeefeeeeddeeddf         dedeee	f         df         d	ee
d
         df         deedf         deedf         deedf         de	f fdZ xZS )
GeoPolygona   
    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    :arg validation_method:  Defaults to `'strict'` if omitted.
    :arg ignore_unmapped:
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    geo_polygonr   r   ri   rj   r   r   r   r   ztypes.GeoPolygonPointsr   r   r   ri   rj   rk   c                z    |t           ur||t          |          <    t                      j        d||||d| d S )Nr   r(   r   )	rN   r   r   r   r   ri   rj   rk   rp   s	           r*   ro   zGeoPolygon.__init__D  se       "(F3v;; 	
/+		
 	

 	
 	
 	
 	
 	
r)   r   r   s   @r*   r   r   4  s         D BI 
 6=-4+2
 
 
c.=>
 $d38nmC

 !:;]J

 t]23
 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r   c                        e Zd ZdZdZeefeeeddeeddf         dedeee	f         df         d	ee
df         d
eedf         deedf         de	f fdZ xZS )GeoShapea  
    Filter documents indexed using either the `geo_shape` or the
    `geo_point` type.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    :arg ignore_unmapped: Set to `true` to ignore an unmapped field and
        not match any documents for this query. Set to `false` to throw an
        exception if the field is not mapped.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    	geo_shaper   ri   rj   r   r   r   r   ztypes.GeoShapeFieldQueryr   ri   rj   rk   c                x    |t           ur||t          |          <    t                      j        d|||d| d S Nr  r(   r   rN   r   r   r   ri   rj   rk   rp   s          r*   ro   zGeoShape.__init__r  s^       "(F3v;; 	
+5	
 	
IO	
 	
 	
 	
 	
r)   r$   r%   r&   r   rA   r   r   r`   r	   r   rb   r   ro   r   r   s   @r*   r  r  ^  s         " D BI 
 7>-4+2
 
 
c.=>
 &S#XE

 t]23
 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r  c                        e Zd ZdZdZdddiiZeeeeeeeeed	deedf         dee	df         dee
df         ded	ee	ef         df         d
eedf         deedf         deed         df         deedf         dee	df         def fdZ xZS )HasChildu(  
    Returns parent documents whose joined child documents match a provided
    query.

    :arg query: (required) Query you wish to run on child documents of the
        `type` field. If a child document matches the search, the query
        returns the parent document.
    :arg type: (required) Name of the child relationship mapped for the
        `join` field.
    :arg ignore_unmapped: Indicates whether to ignore an unmapped `type`
        and not return any documents instead of an error.
    :arg inner_hits: If defined, each search hit will contain inner hits.
    :arg max_children: Maximum number of child documents that match the
        query allowed for a returned parent document. If the parent
        document exceeds this limit, it is excluded from the search
        results.
    :arg min_children: Minimum number of child documents that match the
        query required to match the query for a returned parent document.
        If the parent document does not meet this limit, it is excluded
        from the search results.
    :arg score_mode: Indicates how scores for matching child documents
        affect the root parent document’s relevance score. Defaults to
        `'none'` if omitted.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    	has_childrD   rd   	rD   rd   r   
inner_hitsmax_childrenmin_childrenr   ri   rj   r   r   r  types.InnerHitsr  r  r   r   r   r   r   r   ri   rj   rk   c       	         N     t                      j        d|||||||||	d	|
 d S )Nr  r(   rm   )rN   rD   rd   r   r  r  r  r   ri   rj   rk   rp   s              r*   ro   zHasChild.__init__  sY      	 	
+!%%!	
 	
 	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r   r-   r`   rb   r	   r   r   r   r   ro   r   r   s   @r*   r  r    sZ        > D&'"K .5*16=NU2929 -4+2
 
 
 UM)*
 C&'	

 t]23
 +T#s(^]JK
 C./
 C./
 67F

 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r  c                        e Zd ZdZdZdddiiZeeeeeeeddeedf         dee	df         dee
df         d	ed
eeef         df         dee
df         deedf         deedf         def fdZ xZS )	HasParenta  
    Returns child documents whose joined parent document matches a
    provided query.

    :arg parent_type: (required) Name of the parent relationship mapped
        for the `join` field.
    :arg query: (required) Query you wish to run on parent documents of
        the `parent_type` field. If a parent document matches the search,
        the query returns its child documents.
    :arg ignore_unmapped: Indicates whether to ignore an unmapped
        `parent_type` and not return any documents instead of an error.
        You can use this parameter to query multiple indices that may not
        contain the `parent_type`.
    :arg inner_hits: If defined, each search hit will contain inner hits.
    :arg score: Indicates whether the relevance score of a matching parent
        document is aggregated into its child documents.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    
has_parentrD   rd   parent_typerD   r   r  scoreri   rj   r  r   r   r  r  r  ri   rj   rk   c                J     t                      j        d|||||||d| d S )Nr  r(   rm   )
rN   r  rD   r   r  r  ri   rj   rk   rp   s
            r*   ro   zHasParent.__init__  sS     	 		
#+!		
 		
 		
 		
 		
 		
 		
r)   )r$   r%   r&   r   rA   r   r   r   r`   r-   rb   r	   r   r   ro   r   r   s   @r*   r  r    s!        0 D&'"K 29-46=NU,3-4+2
 
 
 3-.
 UM)*	

 t]23
 +T#s(^]JK
 T=()
 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r  c            	            e Zd ZdZdZeeeddeeee         df         dee	df         deedf         de
f fd	Z xZS )
Idsa  
    Returns documents based on their IDs. This query uses document IDs
    stored in the `_id` field.

    :arg values: An array of document IDs.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    idsvaluesri   rj   r  r   ri   rj   rk   c                B     t                      j        d|||d| d S )Nr  r(   rm   )rN   r  ri   rj   rk   rp   s        r*   ro   zIds.__init__  r   r)   )r$   r%   r&   r   rA   r   r   r`   r   r   r   ro   r   r   s   @r*   r  r    s          D
 <C-4+2L L L c8C=-78L UM)*	L
 S-'(L L L L L L L L L L Lr)   r  c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
	Intervalsz
    Returns documents based on the order and proximity of matching terms.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    	intervalsr   r   r   r   ztypes.IntervalsQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zIntervals.__init__#  r   r)   r   r   s   @r*   r"  r"    s          D BIOV# #c.=># ,d38nmKL# 	# # # # # # # # # #r)   r"  c                   Z    e Zd ZdZdZddddiZeeeeeeeeeed
deed	d
f         dee	e
         d
f         dedeeef         d
f         deed
f         deed
f         deee	e         d
f         dee
d
f         dedeeef         d
f         dee
d
f         deed
f         def fdZ xZS )Knna  
    Finds the k nearest vectors to a query vector, as measured by a
    similarity metric. knn query finds nearest vectors through approximate
    search on indexed dense_vectors.

    :arg field: (required) The name of the vector field to search against
    :arg query_vector: The query vector
    :arg query_vector_builder: The query vector builder. You must provide
        a query_vector_builder or query_vector, but not both.
    :arg num_candidates: The number of nearest neighbor candidates to
        consider per shard
    :arg k: The final number of nearest neighbors to return as top hits
    :arg filter: Filters for the kNN search query
    :arg similarity: The minimum similarity for a vector to be considered
        a match
    :arg rescore_vector: Apply oversampling and rescoring to quantized
        vectors *
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    knnrf   rD   Trc   
r   query_vectorquery_vector_buildernum_candidateskrf   
similarityrescore_vectorri   rj   r   r   r   r)  r*  ztypes.QueryVectorBuilderr+  r,  r-  r.  ztypes.RescoreVectorri   rj   rk   c       
         P     t                      j        d|||||||||	|
d
| d S )Nr(  r(   rm   )rN   r   r)  r*  r+  r,  rf   r-  r.  ri   rj   rk   rp   s               r*   ro   zKnn.__init__M  s\    & 	 	
%!5)!)	
 	
 	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r   r`   r   r   r	   r   r   r-   ro   r   r   s   @r*   r&  r&  .  s        2 D7T22K AH>E 4;'.?F29 -4+2!
 
 
 S-}<=
 HUO]:;	

 $&S#XE

 c=01
 m#$
 eXe_m;<
 %./
 !4S>=@

 UM)*
  S-'(!
" #
 
 
 
 
 
 
 
 
 
r)   r&  c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
Matchz
    Returns documents that match a provided text, number, date or boolean
    value. The provided text is analyzed before matching.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    matchr   r   r   r   ztypes.MatchQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zMatch.__init__z  r   r)   r   r   s   @r*   r1  r1  o  r   r)   r1  c                        e Zd ZdZdZeeddeedf         deedf         de	f fdZ
ddZexZxZZddZeZddZ xZS )MatchAlla  
    Matches all documents, giving them all a `_score` of 1.0.

    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    r4   ri   rj   ri   r   rj   rk   c                @     t                      j        d||d| d S Nr6  r(   rm   rN   ri   rj   rk   rp   s       r*   ro   zMatchAll.__init__  /     	<uE<<V<<<<<r)   rH   r-   r,   c                 *    |                                 S r/   rr   rM   s     r*   rO   zMatchAll.__add__      ||~~r)   c                     | S r/   r(   rM   s     r*   rY   zMatchAll.__or__      r)   r}   c                     t                      S r/   )r}   rT   s    r*   rU   zMatchAll.__invert__  s    {{r)   r\   )rH   r-   r,   r5  )r,   r}   )r$   r%   r&   r   rA   r   r   r   r`   r   ro   rO   r[   rG   rF   rY   rE   rU   r   r   s   @r*   r5  r5    s        	 	 D
 .5+2	= = = UM)*= S-'(	=
 = = = = = =    %,+G+h    G       r)   r5  c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
MatchBoolPrefixa  
    Analyzes its input and constructs a `bool` query from the terms. Each
    term except the last is used in a `term` query. The last term is used
    in a prefix query.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    match_bool_prefixr   r   r   r   ztypes.MatchBoolPrefixQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zMatchBoolPrefix.__init__  r   r)   r   r   s   @r*   rB  rB    s          D BI 
# 
#c.=>
# ($sCx.-G

# 
# 
# 
# 
# 
# 
# 
# 
# 
# 
#r)   rB  c                        e Zd ZdZdZeeddeedf         deedf         de	f fdZ
ddZexZxZZddZeZdefdZ xZS )r}   a  
    Matches no documents.

    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    
match_noner6  ri   r   rj   rk   c                @     t                      j        d||d| d S r8  rm   r9  s       r*   ro   zMatchNone.__init__  r:  r)   rH   r-   r,   c                     | S r/   r(   rM   s     r*   rO   zMatchNone.__add__  r?  r)   c                 *    |                                 S r/   r<  rM   s     r*   rY   zMatchNone.__or__  r=  r)   c                     t                      S r/   )r5  rT   s    r*   rU   zMatchNone.__invert__  s    zzr)   )rH   r-   r,   r}   r\   )r$   r%   r&   r   rA   r   r   r   r`   r   ro   rO   r[   rG   rF   rY   rE   r5  rU   r   r   s   @r*   r}   r}     s        	 	 D
 .5+2	= = = UM)*= S-'(	=
 = = = = = =    %,+G+h    GH        r)   r}   c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
MatchPhrasez
    Analyzes the text and creates a phrase query out of the analyzed text.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    match_phraser   r   r   r   ztypes.MatchPhraseQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zMatchPhrase.__init__  r   r)   r   r   s   @r*   rL  rL    s          D BI 
# 
#c.=>
# $d38nmC

# 
# 
# 
# 
# 
# 
# 
# 
# 
# 
#r)   rL  c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
MatchPhrasePrefixa8  
    Returns documents that contain the words of a provided text, in the
    same order as provided. The last term of the provided text is treated
    as a prefix, matching any words that begin with that term.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    match_phrase_prefixr   r   r   r   ztypes.MatchPhrasePrefixQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zMatchPhrasePrefix.__init__  r   r)   r   r   s   @r*   rP  rP    s          !D BI 
# 
#c.=>
# *DcNMI

# 
# 
# 
# 
# 
# 
# 
# 
# 
# 
#r)   rP  c            +           e Zd ZdZdZeeeeeeeeeeeeeeeeeeeeddeeedf         eeedf                  e	ee
f         df         deedf         deedf         d	eedf         d
eeeedf                  df         deedf         deedf         deedf         deedf         deedf         deeedf         deedf         deedf         deedf         deed         ee         df         deeedf         eeedf                  e	ee
f         df         deedf         deed         df         deedf         deedf         de
f* fdZ xZS )MoreLikeThisag
  
    Returns documents that are "like" a given set of documents.

    :arg like: (required) Specifies free form text and/or a single or
        multiple documents for which you want to find similar documents.
    :arg analyzer: The analyzer that is used to analyze the free form
        text. Defaults to the analyzer associated with the first field in
        fields.
    :arg boost_terms: Each term in the formed query could be further
        boosted by their tf-idf score. This sets the boost factor to use
        when using this feature. Defaults to deactivated (0).
    :arg fail_on_unsupported_field: Controls whether the query should fail
        (throw an exception) if any of the specified fields are not of the
        supported types (`text` or `keyword`). Defaults to `True` if
        omitted.
    :arg fields: A list of fields to fetch and analyze the text from.
        Defaults to the `index.query.default_field` index setting, which
        has a default value of `*`.
    :arg include: Specifies whether the input documents should also be
        included in the search results returned.
    :arg max_doc_freq: The maximum document frequency above which the
        terms are ignored from the input document.
    :arg max_query_terms: The maximum number of query terms that can be
        selected. Defaults to `25` if omitted.
    :arg max_word_length: The maximum word length above which the terms
        are ignored. Defaults to unbounded (`0`).
    :arg min_doc_freq: The minimum document frequency below which the
        terms are ignored from the input document. Defaults to `5` if
        omitted.
    :arg minimum_should_match: After the disjunctive query has been
        formed, this parameter controls the number of terms that must
        match.
    :arg min_term_freq: The minimum term frequency below which the terms
        are ignored from the input document. Defaults to `2` if omitted.
    :arg min_word_length: The minimum word length below which the terms
        are ignored.
    :arg routing:
    :arg stop_words: An array of stop words. Any word in this set is
        ignored.
    :arg unlike: Used in combination with `like` to exclude documents that
        match a set of terms.
    :arg version:
    :arg version_type:  Defaults to `'internal'` if omitted.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    more_like_this)likeanalyzerboost_termsfail_on_unsupported_fieldr   includemax_doc_freqmax_query_termsmax_word_lengthmin_doc_freqrh   min_term_freqmin_word_lengthrouting
stop_wordsunlikeversionversion_typeri   rj   rV  ztypes.LikeDocumentr   rW  rX  rY  r   r   rZ  r[  r\  r]  r^  rh   r_  r`  ra  rb  )%_arabic_
_armenian__basque_	_bengali__brazilian__bulgarian_	_catalan__cjk__czech__danish__dutch_	_english_
_estonian_	_finnish__french_
_galician__german__greek__hindi__hungarian__indonesian__irish_	_italian_	_latvian__lithuanian__norwegian_	_persian__portuguese_
_romanian_	_russian_	_serbian__sorani_	_spanish_	_swedish__thai_	_turkish__none_rc  rd  re  )internalexternalexternal_gteri   rj   rk   c                     t                      j        di d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|d|d|d|d|| d S )NrV  rW  rX  rY  r   rZ  r[  r\  r]  r^  rh   r_  r`  ra  rb  rc  rd  re  ri   rj   r(   rm   )rN   rV  rW  rX  rY  r   rZ  r[  r\  r]  r^  rh   r_  r`  ra  rb  rc  rd  re  ri   rj   rk   rp   s                         r*   ro   zMoreLikeThis.__init__Q  s'   b 	 	
 	
 	
	
X	
 $	
 '@&?		

 6	
 G	
 &	
 ,O	
 ,O	
 &	
 "6!5	
 (-	
 ,O	
 G	
 "z	
  6!	
" G#	
$ &%	
& %'	
( %+	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r`   r   r	   r   r   rb   r   r   ro   r   r   s   @r*   rT  rT    s       1 1f D .53:@G .5295<5<29?F3:5<-4V  -4 -4+2]g
 g
 g
 #++,U3 4456cN
g
 ]*+g
 5-/0g
 $)})<#=g
 U3 3345}D
g
 t]*+g
  C./!g
" sM12#g
$ sM12%g
& C./'g
( $Cm$;<)g
* S-/0+g
, sM12-g
. sM)*/g
0 $&N SMQ(*
1g
F #++,U3 4456cN
Gg
R sM)*Sg
T :;]J
Ug
Z UM)*[g
\ S-'(]g
^ _g
 g
 g
 g
 g
 g
 g
 g
 g
 g
r)   rT  c            )       (    e Zd ZdZdZeeeeeeeeeeeeeeeeeeeddeedf         deedf         deedf         dee	df         d	eeed
f         e
eed
f                  df         deeedf         deedf         deedf         deedf         deedf         deeedf         deed         df         deedf         deedf         dee	df         deed         df         deed         df         dee	df         deedf         def( fdZ xZS )
MultiMatcha
  
    Enables you to search for a provided text, number, date or boolean
    value across multiple fields. The provided text is analyzed before
    matching.

    :arg query: (required) Text, number, boolean value or date you wish to
        find in the provided field.
    :arg analyzer: Analyzer used to convert the text in the query value
        into tokens.
    :arg auto_generate_synonyms_phrase_query: If `true`, match phrase
        queries are automatically created for multi-term synonyms.
        Defaults to `True` if omitted.
    :arg cutoff_frequency:
    :arg fields: The fields to be queried. Defaults to the
        `index.query.default_field` index settings, which in turn defaults
        to `*`.
    :arg fuzziness: Maximum edit distance allowed for matching.
    :arg fuzzy_rewrite: Method used to rewrite the query.
    :arg fuzzy_transpositions: If `true`, edits for fuzzy matching include
        transpositions of two adjacent characters (for example, `ab` to
        `ba`). Can be applied to the term subqueries constructed for all
        terms but the final term. Defaults to `True` if omitted.
    :arg lenient: If `true`, format-based errors, such as providing a text
        query value for a numeric field, are ignored.
    :arg max_expansions: Maximum number of terms to which the query will
        expand. Defaults to `50` if omitted.
    :arg minimum_should_match: Minimum number of clauses that must match
        for a document to be returned.
    :arg operator: Boolean logic used to interpret text in the query
        value. Defaults to `'or'` if omitted.
    :arg prefix_length: Number of beginning characters left unchanged for
        fuzzy matching.
    :arg slop: Maximum number of positions allowed between matching
        tokens.
    :arg tie_breaker: Determines how scores for each per-term blended
        query and scores across groups are combined.
    :arg type: How `the` multi_match query is executed internally.
        Defaults to `'best_fields'` if omitted.
    :arg zero_terms_query: Indicates whether no documents are returned if
        the `analyzer` removes all tokens, such as when using a `stop`
        filter. Defaults to `'none'` if omitted.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    multi_match)rD   rW  r   cutoff_frequencyr   	fuzzinessfuzzy_rewritefuzzy_transpositionslenientmax_expansionsrh   r   prefix_lengthslopr   rd   r   ri   rj   rD   r   rW  r   r  r   r   r  r  r  r  r  rh   r   r   r   r  r  r   rd   best_fieldsmost_fieldscross_fieldsphrasephrase_prefixbool_prefixr   )r   r   ri   rj   rk   c                     t                      j        di d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|d|d|d|| d S )NrD   rW  r   r  r   r  r  r  r  r  rh   r   r  r  r   rd   r   ri   rj   r(   rm   )rN   rD   rW  r   r  r   r  r  r  r  r  rh   r   r  r  r   rd   r   ri   rj   rk   rp   s                        r*   ro   zMultiMatch.__init__  s   L 	 	
 	
 	
%	
X	
 1T0S	
 .-		

 6	
  i	
 (-	
 "6!5	
 G	
 *>	
 "6!5	
 X	
 (-	
 	
 $	
  !	
" .-#	
$ %%	
& %)	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r`   rb   r   r   r   r   r   ro   r   r   s   @r*   r  r    sk       / /b D
 ,3.5JQ8?
 4;3:;B.54;?F?F3:*13: IP-4+2G;
 ;
 ;
 S-'(;
 ]*+	;

 .343F-G;
  } 45;
 #**+U3 3345
;
 c=01;
 S-/0;
 $D-$78;
 t]*+;
  c=01!;
" $Cm$;<#;
$ ,m;<%;
& S-/0';
( C&');
* 5-/0+;
,  

-;
B   6 EFC;
D UM)*E;
F S-'(G;
H I;
 ;
 ;
 ;
 ;
 ;
 ;
 ;
 ;
 ;
r)   r  c                        e Zd ZdZdZdddiiZeeeeeeeddeeddf         dee	df         d	ee
df         d
edeeef         df         deed         df         deedf         deedf         def fdZ xZS )Nestedu  
    Wraps another query to search nested fields. If an object matches the
    search, the nested query returns the root parent document.

    :arg path: (required) Path to the nested object you wish to search.
    :arg query: (required) Query you wish to run on nested objects in the
        path.
    :arg ignore_unmapped: Indicates whether to ignore an unmapped path and
        not return any documents instead of an error.
    :arg inner_hits: If defined, each search hit will contain inner hits.
    :arg score_mode: How scores for matching child objects affect the root
        parent document’s relevance score. Defaults to `'avg'` if omitted.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    nestedrD   rd   pathrD   r   r  r   ri   rj   r  r   r   r   r  r  r   r  ri   rj   rk   c                J     t                      j        d|||||||d| d S )Nr  r(   rm   )
rN   r  rD   r   r  r   ri   rj   rk   rp   s
            r*   ro   zNested.__init__G  sS     	 		
+!!		
 		
 		
 		
 		
 		
 		
r)   )r$   r%   r&   r   rA   r   r   r   r`   r-   rb   r	   r   r   r   ro   r   r   s   @r*   r  r  -  s1        ( D&'"K @G-46=NU -4+2
 
 
 C,m;<
 UM)*	

 t]23
 +T#s(^]JK
 67F

 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r  c                        e Zd ZdZdZeeeeeddeedf         deedf         deedf         dee	df         d	eedf         d
e
f fdZ xZS )ParentIda  
    Returns child documents joined to a specific parent document.

    :arg id: ID of the parent document.
    :arg ignore_unmapped: Indicates whether to ignore an unmapped `type`
        and not return any documents instead of an error.
    :arg type: Name of the child relationship mapped for the `join` field.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    	parent_ididr   rd   ri   rj   r  r   r   rd   ri   rj   rk   c          	      F     t                      j        d|||||d| d S )Nr  r(   rm   )rN   r  r   rd   ri   rj   rk   rp   s          r*   ro   zParentId.__init__s  sM     	 	
+	
 	
 	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r`   rb   r   r   ro   r   r   s   @r*   r  r  a  s          D
 )06=*1-4+2
 
 
 #}$%
 t]23	

 C&'
 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r  c                        e Zd ZdZdZeeeeeeeeeeeddeeddf         dedee	e         df         d	eedf         d
eedf         deedf         deedf         deedf         dee
df         deedf         deedf         def fdZ xZS )	PercolateaX  
    Matches queries stored in an index.

    :arg field: (required) Field that holds the indexed queries. The field
        must use the `percolator` mapping type.
    :arg document: The source of the document being percolated.
    :arg documents: An array of sources of the documents being percolated.
    :arg id: The ID of a stored document to percolate.
    :arg index: The index of a stored document to percolate.
    :arg name: The suffix used for the `_percolator_document_slot` field
        when multiple `percolate` queries are specified.
    :arg preference: Preference used to fetch document to percolate.
    :arg routing: Routing used to fetch document to percolate.
    :arg version: The expected version of a stored document to percolate.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    	percolater   document	documentsr  indexrA   
preferencera  rd  ri   rj   r   r   r   r  r  r  r  rA   r  ra  rd  ri   rj   rk   c                R     t                      j        d|||||||||	|
|d| d S )Nr  r(   rm   )rN   r   r  r  r  r  rA   r  ra  rd  ri   rj   rk   rp   s                r*   ro   zPercolate.__init__  s_      	 	
!	
 	
 	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r`   r   r   r   r   ro   r   r   s   @r*   r  r    s`        , D
 AH9@(/+2*107-4-4-4+2
 
 
 S-}<=
 	

 #56
 #}$%
 S-'(
 C&'
 #},-
 sM)*
 sM)*
 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r  c                        e Zd ZdZdZdddiiZeeeeeddeedf         dee	e
         df         d	ee	d
         e	ee
ef                  df         deedf         dee
df         def fdZ xZS )Pinneda2  
    Promotes selected documents to rank higher than those matching a given
    query.

    :arg organic: (required) Any choice of query used to rank documents
        which will be ranked below the "pinned" documents.
    :arg ids: Document IDs listed in the order they are to appear in
        results. Required if `docs` is not specified.
    :arg docs: Documents listed in the order they are to appear in
        results. Required if `ids` is not specified.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    pinnedorganicrd   rD   r  r  docsri   rj   r   r  r  ztypes.PinnedDocri   rj   rk   c          	      F     t                      j        d|||||d| d S )Nr  r(   rm   )rN   r  r  r  ri   rj   rk   rp   s          r*   ro   zPinned.__init__  sG     	 	
4uE	
 	
MS	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r   r-   r   r`   r	   r   r   ro   r   r   s   @r*   r  r    s        $ DFG$K 073: -4+2
 
 
 um+,
 8C=-/0	

 &'$sCx.)A=P

 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r  c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
Prefixz
    Returns documents that contain a specific prefix in a provided field.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    prefixr   r   r   r   ztypes.PrefixQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zPrefix.__init__  r   r)   r   r   s   @r*   r  r              D BILS# #c.=># )4S>=HI# 	# # # # # # # # # #r)   r  c            9           e Zd ZdZdZeeeeeeeeeeeeeeeeeeeeeeeeeeeddeedf         deedf         deedf         deedf         d	eedf         d
eeddf         dee	d         df         deedf         deedf         dee
eedf                  df         deeedf         deedf         deedf         deedf         deedf         deedf         deedf         deeedf         deedf         deedf         deedf         deedf         deedf         deedf         dee	d          df         d!eedf         d"eedf         d#ef8 fd$Z xZS )%QueryStringa/  
    Returns documents based on a provided query string, using a parser
    with a strict syntax.

    :arg query: (required) Query string you wish to parse and use for
        search.
    :arg allow_leading_wildcard: If `true`, the wildcard characters `*`
        and `?` are allowed as the first character of the query string.
        Defaults to `True` if omitted.
    :arg analyzer: Analyzer used to convert text in the query string into
        tokens.
    :arg analyze_wildcard: If `true`, the query attempts to analyze
        wildcard terms in the query string.
    :arg auto_generate_synonyms_phrase_query: If `true`, match phrase
        queries are automatically created for multi-term synonyms.
        Defaults to `True` if omitted.
    :arg default_field: Default field to search if no field is provided in
        the query string. Supports wildcards (`*`). Defaults to the
        `index.query.default_field` index setting, which has a default
        value of `*`.
    :arg default_operator: Default boolean logic used to interpret text in
        the query string if no operators are specified. Defaults to `'or'`
        if omitted.
    :arg enable_position_increments: If `true`, enable position increments
        in queries constructed from a `query_string` search. Defaults to
        `True` if omitted.
    :arg escape:
    :arg fields: Array of fields to search. Supports wildcards (`*`).
    :arg fuzziness: Maximum edit distance allowed for fuzzy matching.
    :arg fuzzy_max_expansions: Maximum number of terms to which the query
        expands for fuzzy matching. Defaults to `50` if omitted.
    :arg fuzzy_prefix_length: Number of beginning characters left
        unchanged for fuzzy matching.
    :arg fuzzy_rewrite: Method used to rewrite the query.
    :arg fuzzy_transpositions: If `true`, edits for fuzzy matching include
        transpositions of two adjacent characters (for example, `ab` to
        `ba`). Defaults to `True` if omitted.
    :arg lenient: If `true`, format-based errors, such as providing a text
        value for a numeric field, are ignored.
    :arg max_determinized_states: Maximum number of automaton states
        required for the query. Defaults to `10000` if omitted.
    :arg minimum_should_match: Minimum number of clauses that must match
        for a document to be returned.
    :arg phrase_slop: Maximum number of positions allowed between matching
        tokens for phrases.
    :arg quote_analyzer: Analyzer used to convert quoted text in the query
        string into tokens. For quoted text, this parameter overrides the
        analyzer specified in the `analyzer` parameter.
    :arg quote_field_suffix: Suffix appended to quoted text in the query
        string. You can use this suffix to use a different analysis method
        for exact matches.
    :arg rewrite: Method used to rewrite the query.
    :arg tie_breaker: How to combine the queries generated from the
        individual search terms in the resulting `dis_max` query.
    :arg time_zone: Coordinated Universal Time (UTC) offset or IANA time
        zone used to convert date values in the query string to UTC.
    :arg type: Determines how the query matches and scores documents.
        Defaults to `'best_fields'` if omitted.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    query_string)rD   allow_leading_wildcardrW  analyze_wildcardr   default_fielddefault_operatorenable_position_incrementsescaper   r  fuzzy_max_expansionsfuzzy_prefix_lengthr  r  r  max_determinized_statesrh   phrase_slopquote_analyzerquote_field_suffixrewriter   	time_zonerd   ri   rj   rD   r   r  rW  r  r   r  r   r  r  r  r  r   r  r  r  r  r  r  r  rh   r  r  r  r  r   r  rd   r  ri   rj   rk   c                     t                      j        di d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|| d S )NrD   r  rW  r  r   r  r  r  r  r   r  r  r  r  r  r  r  rh   r  r  r  r  r   r  rd   ri   rj   r(   rm   )rN   rD   r  rW  r  r   r  r  r  r  r   r  r  r  r  r  r  r  rh   r  r  r  r  r   r  rd   ri   rj   rk   rp   s                                r*   ro   zQueryString.__init__C  s   X 	 	
 	
 	
%	
#9#9	
 X	
 .-		

 1T0S	
 (-	
 .-	
 (B'A	
 6	
 6	
  i	
 "6!5	
 !4 3	
 (-	
 "6!5	
  G!	
" %<$;#	
$ "6!5%	
& $'	
( *>)	
*  21+	
, G-	
. $/	
0  i1	
2 3	
4 %5	
6 %9	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r`   rb   r   r   r   r   r   ro   r   r   s   @r*   r  r    s8       @ @D D
 ,3=D.57>JQHOGNAH-4 4;:A9@3:;B.5=D?F3:4;8?-43:/6 -4+2SI
 I
 I
 S-'(I
 !&dM&9 :	I

 ]*+I
  m 34I
 .343F-GI
 S"5}DEI
   4m CDI
 %*$*=$>I
 dM)*I
 U3 3345}D
I
 c=01I
  $C$67!I
" #3#56#I
$ S-/0%I
& $D-$78'I
( t]*+)I
* "'sM'9!:+I
, $Cm$;<-I
. 5-/0/I
0 c=011I
2 "#}"453I
4 sM)*5I
6 5-/07I
8 m+,9I
:  

;I
P UM)*QI
R S-'(SI
T UI
 I
 I
 I
 I
 I
 I
 I
 I
 I
r)   r  c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
Rangez
    Returns documents that contain terms within a provided range.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    ranger   r   r   r   zwrappers.Range[Any]rk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zRange.__init__  r   r)   r   r   s   @r*   r  r    s          D BINU# #c.=># +T#s(^]JK# 	# # # # # # # # # #r)   r  c                       e Zd ZdZdZeeeeeeeddeeddf         dedeee	f         df         d	ed
eee	f         df         dedeee	f         df         dedeee	f         df         dee
df         deedf         de	f fdZ xZS )RankFeaturea6  
    Boosts the relevance score of documents based on the numeric value of
    a `rank_feature` or `rank_features` field.

    :arg field: (required) `rank_feature` or `rank_features` field used to
        boost relevance scores.
    :arg saturation: Saturation function used to boost relevance scores
        based on the value of the rank feature `field`.
    :arg log: Logarithmic function used to boost relevance scores based on
        the value of the rank feature `field`.
    :arg linear: Linear function used to boost relevance scores based on
        the value of the rank feature `field`.
    :arg sigmoid: Sigmoid function used to boost relevance scores based on
        the value of the rank feature `field`.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    rank_featurer   
saturationloglinearsigmoidri   rj   r   r   r   r  z#types.RankFeatureFunctionSaturationr  z"types.RankFeatureFunctionLogarithmr  ztypes.RankFeatureFunctionLinearr  z types.RankFeatureFunctionSigmoidri   rj   rk   c                J     t                      j        d|||||||d| d S )Nr  r(   rm   )
rN   r   r  r  r  r  ri   rj   rk   rp   s
            r*   ro   zRankFeature.__init__  sS    ( 	 		
!		
 		
 		
 		
 		
 		
 		
r)   r$   r%   r&   r   rA   r   r   r`   r	   r   r   ro   r   r   s   @r*   r  r    sF        , D
 AH    -4+2#
 
 
 S-}<=
 14S>=P
	
 0$sCx.-O

 -tCH~}L

 .S#XM

  UM)*!
" S-'(#
$ %
 
 
 
 
 
 
 
 
 
r)   r  c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
Regexpz
    Returns documents that contain terms matching a regular expression.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    regexpr   r   r   r   ztypes.RegexpQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zRegexp.__init__  r   r)   r   r   s   @r*   r  r    r  r)   r  c                        e Zd ZdZdZdddiiZeeeeeeddeedf         de	d	ee
ee
         df         d
ee
df         deedf         dee
df         de	f fdZ xZS )Rulea  
    :arg organic: (required)
    :arg match_criteria: (required)
    :arg ruleset_ids:
    :arg ruleset_id:
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    ruler  rd   rD   r  match_criteriaruleset_ids
ruleset_idri   rj   r   r  r  r  ri   rj   rk   c          
      H     t                      j        d||||||d| d S )Nr  r(   rm   )	rN   r  r  r  r  ri   rj   rk   rp   s	           r*   ro   zRule.__init__  sP     	 	
)#!	
 	
 	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r   r-   r   r`   r   r   ro   r   r   s   @r*   r  r    s          DFG$K 07%@G07-4+2
 
 
 um+,
 	

 3}<=
 #},-
 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r  c            	            e Zd ZdZdZeeeddedeee	f         df         dee
df         deedf         de	f fd	Z xZS )
ScriptaY  
    Filters documents based on a provided script. The script query is
    typically used in a filter context.

    :arg script: (required) Contains a script to run as a query. This
        script must return a boolean value, `true` or `false`.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    scriptr  ri   rj   types.Scriptr   ri   rj   rk   c                B     t                      j        d|||d| d S )Nr  r(   rm   )rN   r  ri   rj   rk   rp   s        r*   ro   zScript.__init__,  r   r)   r$   r%   r&   r   rA   r   r   r	   r`   r   r   ro   r   r   s   @r*   r  r    s          D
 HO-4+2L L L nd38nmCDL UM)*	L
 S-'(L L L L L L L L L L Lr)   r  c                        e Zd ZdZdZdddiiZeeeeeddeedf         dede	e
ef         df         d	eedf         d
eedf         dee
df         def fdZ xZS )ScriptScorea)  
    Uses a script to provide a custom score for returned documents.

    :arg query: (required) Query used to return documents.
    :arg script: (required) Script used to compute the score of documents
        returned by the query. Important: final relevance scores from the
        `script_score` query cannot be negative.
    :arg min_score: Documents with a score lower than this floating point
        number are excluded from the search results.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    script_scorerD   rd   rD   r  r   ri   rj   r   r  r  r   ri   rj   rk   c          	      F     t                      j        d|||||d| d S )Nr  r(   rm   )rN   rD   r  r   ri   rj   rk   rp   s          r*   ro   zScriptScore.__init__N  sM     	 	
	
 	
 	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r   r-   r	   r`   r   r   ro   r   r   s   @r*   r  r  7  s         " D&'"K .5GN18-4+2
 
 
 UM)*
 nd38nmCD	

 -.
 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r  c                        e Zd ZdZdZeeeeddeedf         deedf         deedf         deedf         d	e	f
 fd
Z
 xZS )Semantica"  
    A semantic query to semantic_text field types

    :arg field: (required) The field to query, which must be a
        semantic_text field type
    :arg query: (required) The query text
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    semanticr   rD   ri   rj   r   r   rD   ri   rj   rk   c                D     t                      j        d||||d| d S Nr  r(   rm   rN   r   rD   ri   rj   rk   rp   s         r*   ro   zSemantic.__init__s  3     	VuEeVVvVVVVVr)   r   r   s   @r*   r  r  b  s          D
 ,3+2-4+2	W 	W 	W S-'(	W S-'(		W
 UM)*	W S-'(	W 	W 	W 	W 	W 	W 	W 	W 	W 	W 	Wr)   r  c                        e Zd ZdZdZeefeeeddeeddf         dedeee	f         df         d	ee
df         d
eedf         deedf         de	f fdZ xZS )Shapea  
    Queries documents that contain fields indexed using the `shape` type.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    :arg ignore_unmapped: When set to `true` the query ignores an unmapped
        field and will not match any documents.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    shaper  r   r   r   r   ztypes.ShapeFieldQueryr   ri   rj   rk   c                x    |t           ur||t          |          <    t                      j        d|||d| d S r  r   r  s          r*   ro   zShape.__init__  s^       "(F3v;; 	
+5	
 	
IO	
 	
 	
 	
 	
r)   r	  r   s   @r*   r  r    s          D BIPW

 7>-4+2
 
 
c.=>
 -tCH~}LM

 t]23
 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r  c            !           e Zd ZdZdZeeeeeeeeeeeeeeeddeedf         deedf         deedf         deedf         d	ee	d
         df         dee
eedf                  df         dedeeef         df         deedf         deedf         deedf         deedf         deeedf         deedf         deedf         deedf         def  fdZ xZS )SimpleQueryStringa  
    Returns documents based on a provided query string, using a parser
    with a limited but fault-tolerant syntax.

    :arg query: (required) Query string in the simple query string syntax
        you wish to parse and use for search.
    :arg analyzer: Analyzer used to convert text in the query string into
        tokens.
    :arg analyze_wildcard: If `true`, the query attempts to analyze
        wildcard terms in the query string.
    :arg auto_generate_synonyms_phrase_query: If `true`, the parser
        creates a match_phrase query for each multi-position token.
        Defaults to `True` if omitted.
    :arg default_operator: Default boolean logic used to interpret text in
        the query string if no operators are specified. Defaults to `'or'`
        if omitted.
    :arg fields: Array of fields you wish to search. Accepts wildcard
        expressions. You also can boost relevance scores for matches to
        particular fields using a caret (`^`) notation. Defaults to the
        `index.query.default_field index` setting, which has a default
        value of `*`.
    :arg flags: List of enabled operators for the simple query string
        syntax. Defaults to `ALL` if omitted.
    :arg fuzzy_max_expansions: Maximum number of terms to which the query
        expands for fuzzy matching. Defaults to `50` if omitted.
    :arg fuzzy_prefix_length: Number of beginning characters left
        unchanged for fuzzy matching.
    :arg fuzzy_transpositions: If `true`, edits for fuzzy matching include
        transpositions of two adjacent characters (for example, `ab` to
        `ba`).
    :arg lenient: If `true`, format-based errors, such as providing a text
        value for a numeric field, are ignored.
    :arg minimum_should_match: Minimum number of clauses that must match
        for a document to be returned.
    :arg quote_field_suffix: Suffix appended to quoted text in the query
        string.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    simple_query_stringrD   rW  r  r   r  r   flagsr  r  r  r  rh   r  ri   rj   rD   r   rW  r  r   r  r  r   r   r  ztypes.PipeSeparatedFlagsr  r  r  r  rh   r  ri   rj   rk   c                Z     t                      j        d|||||||||	|
|||||d| d S )Nr  r(   rm   )rN   rD   rW  r  r   r  r   r  r  r  r  r  rh   r  ri   rj   rk   rp   s                    r*   ro   zSimpleQueryString.__init__  sk    0 	 	
-0S-!5 3!5!51	
 	
  !	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r`   rb   r   r   r	   r   r   r   ro   r   r   s   @r*   r	  r	    s       * *X !D
 ,3.57>JQGN  :A9@;B.5?F8?-4+2+)
 )
 )
 S-'()
 ]*+	)

  m 34)
 .343F-G)
   4m CD)
 U3 3345}D
)
 &S#XE
)
 $C$67)
 #3#56)
  $D-$78!)
" t]*+#)
$ $Cm$;<%)
& "#}"45')
( UM)*))
* S-'(+)
, -)
 )
 )
 )
 )
 )
 )
 )
 )
 )
r)   r	  c                        e Zd ZdZdZeeeeddedeee	f         df         dedeee	f         df         dee
df         d	eedf         d
e	f
 fdZ xZS )SpanContaininga  
    Returns matches which enclose another span query.

    :arg big: (required) Can be any span query. Matching spans from `big`
        that contain matches from `little` are returned.
    :arg little: (required) Can be any span query. Matching spans from
        `big` that contain matches from `little` are returned.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    span_containingbiglittleri   rj   r  types.SpanQueryr   r  ri   rj   rk   c                D     t                      j        d||||d| d S Nr  r(   rm   rN   r  r  ri   rj   rk   rp   s         r*   ro   zSpanContaining.__init__	  3     	TSuETTVTTTTTr)   r  r   s   @r*   r  r    s          D
 HOJQ-4+2	U 	U 	U $d38nmCD	U 'c3hFG		U
 UM)*	U S-'(	U 	U 	U 	U 	U 	U 	U 	U 	U 	U 	Ur)   r  c                        e Zd ZdZdZeeeeddeeddf         dedeee	f         df         d	ee
df         d
eedf         de	f
 fdZ xZS )SpanFieldMaskinga  
    Wrapper to allow span queries to participate in composite single-field
    span queries by _lying_ about their search field.

    :arg field: (required)
    :arg query: (required)
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    span_field_maskingr  r   r   r   rD   r  ri   rj   rk   c                D     t                      j        d||||d| d S r  rm   r  s         r*   ro   zSpanFieldMasking.__init__,	  r  r)   r  r   s   @r*   r  r  	  s           D
 AHIP-4+2	W 	W 	W S-}<=	W &S#XEF		W
 UM)*	W S-'(	W 	W 	W 	W 	W 	W 	W 	W 	W 	W 	Wr)   r  c                        e Zd ZdZdZeeeeddeedf         dedee	e
f         df         deedf         d	ee	df         d
e
f
 fdZ xZS )	SpanFirsta-  
    Matches spans near the beginning of a field.

    :arg end: (required) Controls the maximum end position permitted in a
        match.
    :arg match: (required) Can be any other span type query.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    
span_firstendr2  ri   rj   r!  r   r2  r  ri   rj   rk   c                D     t                      j        d||||d| d S )Nr   r(   rm   )rN   r!  r2  ri   rj   rk   rp   s         r*   ro   zSpanFirst.__init__I	  s3     	RSU%RR6RRRRRr)   )r$   r%   r&   r   rA   r   r   r   r	   r`   r   r   ro   r   r   s   @r*   r  r  8	  s          D
 *1IP-4+2	S 	S 	S 3%&	S &S#XEF		S
 UM)*	S S-'(	S 	S 	S 	S 	S 	S 	S 	S 	S 	S 	Sr)   r  c            	       ~     e Zd ZdZdZdddiiZeeeddeedf         dee	df         d	ee
df         d
ef fdZ xZS )	SpanMultia  
    Allows you to wrap a multi term query (one of `wildcard`, `fuzzy`,
    `prefix`, `range`, or `regexp` query) as a `span` query, so it can be
    nested.

    :arg match: (required) Should be a multi term query (one of
        `wildcard`, `fuzzy`, `prefix`, `range`, or `regexp` query).
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    
span_multir2  rd   rD   r2  ri   rj   r   ri   rj   rk   c                B     t                      j        d|||d| d S )Nr&  r(   rm   )rN   r2  ri   rj   rk   rp   s        r*   ro   zSpanMulti.__init__j	  r   r)   r   r   s   @r*   r$  r$  U	  s          D&'"K .5-4+2J J J UM)*J UM)*	J
 S-'(J J J J J J J J J J Jr)   r$  c                        e Zd ZdZdZeeeeeddeed         eee	e
f                  df         deedf         deedf         d	eedf         d
ee	df         de
f fdZ xZS )SpanNeara  
    Matches spans which are near one another. You can specify `slop`, the
    maximum number of intervening unmatched positions, as well as whether
    matches are required to be in-order.

    :arg clauses: (required) Array of one or more other span type queries.
    :arg in_order: Controls whether matches are required to be in-order.
    :arg slop: Controls the maximum number of intervening unmatched
        positions permitted.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    	span_nearclausesin_orderr  ri   rj   r,  r  r   r-  r  ri   rj   rk   c          	      F     t                      j        d|||||d| d S )Nr+  r(   rm   )rN   r,  r-  r  ri   rj   rk   rp   s          r*   ro   zSpanNear.__init__	  sM     	 	
	
 	
 	
 	
 	
 	
 	
r)   )r$   r%   r&   r   rA   r   r   r   r	   r`   r   rb   r   r   ro   r   r   s   @r*   r)  r)  u	  s         " D /6*1-4+2
 
 
 &'$sCx.)A=P

 m+,
 C&'
 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r)  c                        e Zd ZdZdZeeeeeeeddedeee	f         df         dedeee	f         df         dee
df         d	ee
df         d
ee
df         deedf         deedf         de	f fdZ xZS )SpanNotuu  
    Removes matches which overlap with another span query or which are
    within x tokens before (controlled by the parameter `pre`) or y tokens
    after (controlled by the parameter `post`) another span query.

    :arg exclude: (required) Span query whose matches must not overlap
        those returned.
    :arg include: (required) Span query whose matches are filtered.
    :arg dist: The number of tokens from within the include span that
        can’t have overlap with the exclude span. Equivalent to setting
        both `pre` and `post`.
    :arg post: The number of tokens after the include span that can’t have
        overlap with the exclude span.
    :arg pre: The number of tokens before the include span that can’t have
        overlap with the exclude span.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    span_notexcluderZ  distpostpreri   rj   r3  r  r   rZ  r4  r5  r6  ri   rj   rk   c                J     t                      j        d|||||||d| d S )Nr2  r(   rm   )
rN   r3  rZ  r4  r5  r6  ri   rj   rk   rp   s
            r*   ro   zSpanNot.__init__	  sS     	 		
		
 		
 		
 		
 		
 		
 		
r)   )r$   r%   r&   r   rA   r   r   r	   r`   r   r   r   ro   r   r   s   @r*   r0  r0  	  s        . D
 LSKR*1*1)0-4+2
 
 
 ($sCx.-GH
 ($sCx.-GH	

 C&'
 C&'
 3%&
 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   r0  c            	            e Zd ZdZdZeeeddeed         eee	e
f                  df         deedf         dee	df         d	e
f fd
Z xZS )SpanOra  
    Matches the union of its span clauses.

    :arg clauses: (required) Array of one or more other span type queries.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    span_orr,  ri   rj   r,  r  r   ri   rj   rk   c                B     t                      j        d|||d| d S )Nr;  r(   rm   )rN   r,  ri   rj   rk   rp   s        r*   ro   zSpanOr.__init__	  s1     	MUMMfMMMMMr)   )r$   r%   r&   r   rA   r   r   r   r	   r`   r   r   ro   r   r   s   @r*   r9  r9  	  s        
 
 D -4+2
N 
N 
N &'$sCx.)A=P

N UM)*
N S-'(
N 
N 
N 
N 
N 
N 
N 
N 
N 
N 
Nr)   r9  c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
SpanTermz
    Matches spans containing a term.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    	span_termr   r   r   r   ztypes.SpanTermQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zSpanTerm.__init__	  r   r)   r   r   s   @r*   r>  r>  	  s          D BINU# #c.=># +T#s(^]JK# 	# # # # # # # # # #r)   r>  c                        e Zd ZdZdZeeeeddedeee	f         df         dedeee	f         df         dee
df         d	eedf         d
e	f
 fdZ xZS )
SpanWithina  
    Returns matches which are enclosed inside another span query.

    :arg big: (required) Can be any span query. Matching spans from
        `little` that are enclosed within `big` are returned.
    :arg little: (required) Can be any span query. Matching spans from
        `little` that are enclosed within `big` are returned.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    span_withinr  r  r  r   r  ri   rj   rk   c                D     t                      j        d||||d| d S r  rm   r  s         r*   ro   zSpanWithin.__init__
  r  r)   r  r   s   @r*   rB  rB  
  s          D
 HOJQ-4+2	U 	U 	U $d38nmCD	U 'c3hFG		U
 UM)*	U S-'(	U 	U 	U 	U 	U 	U 	U 	U 	U 	U 	Ur)   rB  c                       e Zd ZdZdZeeeeeeeeddeeddf         deeee	f         df         deedf         d	eedf         d
ee
df         dedeeef         df         dee	df         deedf         def fdZ xZS )SparseVectora  
    Using input query vectors or a natural language processing model to
    convert a query into a list of token-weight pairs, queries against a
    sparse vector field.

    :arg field: (required) The name of the field that contains the token-
        weight pairs to be searched against. This field must be a mapped
        sparse_vector field.
    :arg query_vector: Dictionary of precomputed sparse vectors and their
        associated weights. Only one of inference_id or query_vector may
        be supplied in a request.
    :arg inference_id: The inference ID to use to convert the query text
        into token-weight pairs. It must be the same inference ID that was
        used to create the tokens from the input text. Only one of
        inference_id and query_vector is allowed. If inference_id is
        specified, query must also be specified. Only one of inference_id
        or query_vector may be supplied in a request.
    :arg query: The query text you want to use for search. If inference_id
        is specified, query must also be specified.
    :arg prune: Whether to perform pruning, omitting the non-significant
        tokens from the query to improve query performance. If prune is
        true but the pruning_config is not specified, pruning will occur
        but default values will be used. Default: false
    :arg pruning_config: Optional pruning configuration. If enabled, this
        will omit non-significant tokens from the query in order to
        improve query performance. This is only used if prune is set to
        true. If prune is set to true but pruning_config is not specified,
        default values will be used.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    sparse_vectorr   r)  inference_idrD   prunepruning_configri   rj   r   r   r   r)  rI  rD   rJ  rK  ztypes.TokenPruningConfigri   rj   rk   c                L     t                      j        d||||||||d|	 d S )NrH  r(   rm   )rN   r   r)  rI  rD   rJ  rK  ri   rj   rk   rp   s             r*   ro   zSparseVector.__init__G
  sV     	 
	
%%)
	
 
	
 
	
 
	
 
	
 
	
 
	
r)   )r$   r%   r&   r   rA   r   r   r`   r   r   rb   r	   r   ro   r   r   s   @r*   rF  rF   
  s:       " "H D
 AHBI29+2,3 -4+2
 
 
 S-}<=
 GCJ/>?	

 C./
 S-'(
 T=()
 &S#XE

 UM)*
 S-'(
 
 
 
 
 
 
 
 
 
 
r)   rF  c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
Terma1  
    Returns documents that contain an exact term in a provided field. To
    return a document, the query term must exactly match the queried
    field's value, including whitespace and capitalization.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    termr   r   r   r   ztypes.TermQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zTerm.__init__o
  r   r)   r   r   s   @r*   rN  rN  c
  s          D BIJQ# #c.=># 'c3hFG# 	# # # # # # # # # #r)   rN  c                        e Zd ZdZdZeefeeddeeddf         deeee	e
eedef                  d	eeef         df         d
ee
df         deedf         def
 fdZdededdf fdZ xZS )Termsa  
    Returns documents that contain one or more exact terms in a provided
    field. To return a document, one or more terms must exactly match a
    field value, including whitespace and capitalization.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    termsr6  r   r   r   r   Nztypes.TermsLookupri   rj   rk   c                v    |t           ur||t          |          <    t                      j        d||d| d S r8  r   )rN   r   r   ri   rj   rk   rp   s         r*   ro   zTerms.__init__
  sJ       "(F3v;;<uE<<V<<<<<r)   rA   valuer,   c                     t          |d          r1t          |t          t          t          f          st          |          }t                                          ||           d S )N__iter__)r@   r9   r`   listdictrn   _setattr)rN   rA   rU  rp   s      r*   rZ  zTerms._setattr
  sX    5*%% 	 jdD@Q.R.R 	 KKEu%%%%%r)   )r$   r%   r&   r   rA   r   r   r`   r   r   r   rb   r   r	   ro   rZ  r   r   s   @r*   rR  rR  z
  s*         D BI = .5+2= = =c.=>= U3sD$;<=cN
= UM)*= S-'(= = = = = = =$&S & & & & & & & & & & & &r)   rR  c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
TermsSetaJ  
    Returns documents that contain a minimum number of exact terms in a
    provided field. To return a document, a required number of terms must
    exactly match the field values, including whitespace and
    capitalization.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    	terms_setr   r   r   r   ztypes.TermsSetQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zTermsSet.__init__
  r   r)   r   r   s   @r*   r\  r\  
  s          D BINU# #c.=># +T#s(^]JK# 	# # # # # # # # # #r)   r\  c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
TextExpansiona'  
    Uses a natural language processing model to convert the query text
    into a list of token-weight pairs which are then used in a query
    against a sparse vector or rank features field.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    text_expansionr   r   r   r   ztypes.TextExpansionQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zTextExpansion.__init__
  r   r)   r   r   s   @r*   r`  r`  
  s          D BI 
# 
#c.=>
# &S#XE

# 
# 
# 
# 
# 
# 
# 
# 
# 
# 
#r)   r`  c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
WeightedTokensz
    Supports returning text_expansion query results by sending in
    precomputed tokens with the query.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    weighted_tokensr   r   r   r   ztypes.WeightedTokensQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zWeightedTokens.__init__
  r   r)   r   r   s   @r*   rd  rd  
  s          D BI 
# 
#c.=>
# 'c3hF

# 
# 
# 
# 
# 
# 
# 
# 
# 
# 
#r)   rd  c            	       n     e Zd ZdZdZeefdeeddf         dedeee	f         df         de	f fd	Z
 xZS )
Wildcardz
    Returns documents that contain terms matching a wildcard pattern.

    :arg _field: The field to use in this query.
    :arg _value: The query value for the field.
    wildcardr   r   r   r   ztypes.WildcardQueryrk   c                 p    |t           ur||t          |          <    t                      j        di | d S r   r   r   s       r*   ro   zWildcard.__init__
  r   r)   r   r   s   @r*   rh  rh  
  s          D BINU# #c.=># +T#s(^]JK# 	# # # # # # # # # #r)   rh  c            	       r     e Zd ZdZdZeeeddeedf         deedf         deedf         de	f fd	Z
 xZS )
Wrappera-  
    A query that accepts any other query as base64 encoded string.

    :arg query: (required) A base64 encoded query. The binary data format
        can be any of JSON, YAML, CBOR or SMILE encodings
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    wrapperrD   ri   rj   rD   r   ri   rj   rk   c                B     t                      j        d|||d| d S )Nrn  r(   rm   )rN   rD   ri   rj   rk   rp   s        r*   ro   zWrapper.__init__  r   r)   r   r   s   @r*   rl  rl    s          D
 ,3-4+2J J J S-'(J UM)*	J
 S-'(J J J J J J J J J J Jr)   rl  c            	       r     e Zd ZdZdZeeeddeedf         deedf         deedf         de	f fd	Z
 xZS )
Typea  
    :arg value: (required)
    :arg boost: Floating point number used to decrease or increase the
        relevance scores of the query. Boost values are relative to the
        default value of 1.0. A boost value between 0 and 1.0 decreases
        the relevance score. A value greater than 1.0 increases the
        relevance score. Defaults to `1` if omitted.
    :arg _name:
    rd   rU  ri   rj   rU  r   ri   rj   rk   c                B     t                      j        d|||d| d S )Nrr  r(   rm   )rN   rU  ri   rj   rk   rp   s        r*   ro   zType.__init__+  r   r)   r   r   s   @r*   rq  rq    s          D
 ,3-4+2J J J S-'(J UM)*	J
 S-'(J J J J J J J J J J Jr)   rq  )r+   r-   r,   r-   )r4   )hcollections.abcr:   copyr   	itertoolsr   typingr   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   elastic_transport.client_utilsr   functionr   r   utilsr   r    r   r   document_baser   r   r`   r   r"   r1   r-   rL   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r"  r&  r1  r5  EMPTY_QUERYrB  r}   rL  rP  rT  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r	  r  r  r  r$  r)  r0  r9  r>  rB  rF  rN  rR  r\  r`  rd  rh  rl  rq  r(   r)   r*   <module>r~     s  $                                                   & 3 2 2 2 2 2       # # # # # #       1::::::!!!!!!!!000000WT]]WTc*+++    x|    
 =^CG, = = = = 
 = 
 - - - 
 - 
 5%b) 5b 5 5 5 
 5 
 F FS F# F' F F F 
 F 	"8 "8sBw	!"8 "8 7B;"8 "8 "8 "8J (  (  (  (  (G  (  (  (F` ` ` ` `5 ` ` `F+
 +
 +
 +
 +
u +
 +
 +
\# # # # #U # # #*8
 8
 8
 8
 8
U 8
 8
 8
vL L L L LE L L LB&
 &
 &
 &
 &
U &
 &
 &
R-
 -
 -
 -
 -
e -
 -
 -
`J J J J JU J J J4@
 @
 @
 @
 @
E @
 @
 @
F# # # # #E # # #,6
 6
 6
 6
 6
U 6
 6
 6
r>
 >
 >
 >
 >
% >
 >
 >
B# # # # #e # # #,'
 '
 '
 '
 '
 '
 '
 '
T$
 $
 $
 $
 $
u $
 $
 $
N@
 @
 @
 @
 @
u @
 @
 @
F3
 3
 3
 3
 3
 3
 3
 3
lL L L L L% L L L6# # # # # # # #*>
 >
 >
 >
 >
% >
 >
 >
B# # # # #E # # #," " " " "u " " "J hjj# # # # #e # # #2" " " " " " " "J# # # # #% # # #.# # # # # # # #2]
 ]
 ]
 ]
 ]
5 ]
 ]
 ]
@o
 o
 o
 o
 o
 o
 o
 o
d1
 1
 1
 1
 1
U 1
 1
 1
h#
 #
 #
 #
 #
u #
 #
 #
L6
 6
 6
 6
 6
 6
 6
 6
r&
 &
 &
 &
 &
U &
 &
 &
R# # # # #U # # #*N
 N
 N
 N
 N
% N
 N
 N
b# # # # #E # # #*6
 6
 6
 6
 6
% 6
 6
 6
r# # # # #U # # #*&
 &
 &
 &
 &
5 &
 &
 &
RL L L L LU L L L8(
 (
 (
 (
 (
% (
 (
 (
VW W W W Wu W W W: 
  
  
  
  
E  
  
  
FX
 X
 X
 X
 X
 X
 X
 X
vU U U U UU U U U<W W W W Wu W W W:S S S S S S S S:J J J J J J J J@'
 '
 '
 '
 '
u '
 '
 '
T/
 /
 /
 /
 /
e /
 /
 /
dN N N N NU N N N8# # # # #u # # #*U U U U U U U U<@
 @
 @
 @
 @
5 @
 @
 @
F# # # # #5 # # #.(& (& (& (& (&E (& (& (&V# # # # #u # # #0# # # # #E # # #2# # # # #U # # #0# # # # #u # # #*J J J J Je J J J6J J J J J5 J J J J Jr)   