hyb
2025-12-23 7e5db3a16b423ec4a43459805e277979bcac7db5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Ë
 
çúhŽãó¨—ddlmZddlmZddlmZmZmZm    Z    m
Z
m Z m Z m Z mZGd„de«ZGd„dee «ZGd    „d
ee«ZGd „d e ee«Zy )é)ÚPipelineéé)    Ú AGGREGATE_CMDÚ
CONFIG_CMDÚINFO_CMDÚ PROFILE_CMDÚ
SEARCH_CMDÚSPELLCHECK_CMDÚ SYNDUMP_CMDÚAsyncSearchCommandsÚSearchCommandscó4—eZdZdZGd„d«Zdd„Zdd„Zy)    ÚSearchzy
    Create a client for talking to search.
    It abstracts the API of the module and lets you just use the engine.
    có@—eZdZdZdd„Zd„Z                        d    d„Zd
d„Zd„Zy) úSearch.BatchIndexerúŠ
        A batch indexer allows you to automatically batch
        document indexing in pipelines, flushing it every N documents.
        cóŽ—||_|j|_|jdd¬«|_d|_||_d|_y)NF)Ú transactionÚ
shard_hintr)ÚclientÚexecute_commandÚpipelineÚ    _pipelineÚtotalÚ
chunk_sizeÚ current_chunk)Úselfrrs   õqH:\项目\archive\测试组\脚本\Change_password\venv_build\Lib\site-packages\redis/commands/search/__init__.pyÚ__init__zSearch.BatchIndexer.__init__sA€Ø ˆDŒKØ#)×#9Ñ#9ˆDÔ  Ø#Ÿ_™_¸È4˜_ÓPˆDŒN؈DŒJØ(ˆDŒOØ!"ˆDÕ ócó>—|jr|j«yy)N)rÚcommit©rs rÚ__del__zSearch.BatchIndexer.__del__%s€Ø×!Ò!Ø— ‘ • ð"r!Nc ó
—|jj|f|j||||||dœ|¤Ž|xjdz c_|xjdz c_|j|j
k\r|j «yy©z;
            Add a document to the batch query
            )ÚconnÚnosaveÚscoreÚpayloadÚreplaceÚpartialÚ    no_createrN©rÚ _add_documentrrrrr#©    rÚdoc_idr)r*r+r,r-r.Úfieldss             rÚ add_documentz Search.BatchIndexer.add_document)sƒ€ð &ˆDK‰K× %Ñ %Øð
à—^‘^ØØØØØØ#ñ
ðò
ð × Ò  !Ñ #Õ Ø JŠJ˜!‰OJØ×!Ñ! T§_¡_Ò4Ø— ‘ • ð5r!cóþ—|jj||j||¬«|xjdz c_|xjdz c_|j|j
k\r|j «yy)z7
            Add a hash to the batch query
            )r(r*r,rN)rÚ_add_document_hashrrrrr#)rr2r*r,s    rÚadd_document_hashz%Search.BatchIndexer.add_document_hashGsh€ð K‰K× *Ñ *ؘTŸ^™^°5À'ð +ô ð × Ò  !Ñ #Õ Ø JŠJ˜!‰OJØ×!Ñ! T§_¡_Ò4Ø— ‘ • ð5r!cóF—|jj«d|_y)úL
            Manually commit and flush the batch indexing query
            rN©rÚexecuterr$s rr#zSearch.BatchIndexer.commitSs€ð N‰N× "Ñ "Ô $Ø!"ˆDÕ r!)iè©Fçð?NFFF)r=F)    Ú__name__Ú
__module__Ú __qualname__Ú__doc__r r%r4r7r#©r!rÚ BatchIndexerrs4„ñ     ó
    #ò    ðØØØØØó    ó<
    ó    #r!rCcó`—i|_||_||_|j|_|j|_t |jt|jt|jt|jt|jt |j"t$|j&i|_y)z®
        Create a new Client for the given index_name.
        The default name is `idx`
 
        If conn is not None, we employ an already existing redis connection
        N)Ú_MODULE_CALLBACKSrÚ
index_namerrrrÚ _parse_infor
Ú _parse_searchrÚ_parse_aggregater    Ú_parse_profiler Ú_parse_spellcheckrÚ_parse_config_getr Ú_parse_syndumpÚ_RESP2_MODULE_CALLBACKS)rrrFs   rr zSearch.__init__ZsŠ€ð"$ˆÔ؈Œ Ø$ˆŒØ%×5Ñ5ˆÔØŸ™ˆŒä d×&Ñ&Ü ˜×*Ñ*Ü ˜4×0Ñ0Ü ˜×,Ñ,Ü ˜D×2Ñ2Ü ˜×.Ñ.Ü ˜×,Ñ,ð(
ˆÕ$r!Ncó‚—t|jj|j||¬«}|j|_|S©zŒCreates a pipeline for the SEARCH module, that can be used for executing
        SEARCH commands, as well as classic core commands.
        )Úconnection_poolÚresponse_callbacksrr)rrrQrErF©rrrÚps    rrzSearch.pipelineps<€ô Ø ŸK™K×7Ñ7Ø#×5Ñ5Ø#Ø!ô    
ˆð —‘ˆŒ ؈r!)Úidx©TN)r>r?r@rArCr rrBr!rrrs„ñ÷
A#ñA#óF
ô, r!rcó>—eZdZGd„dej«Zdd„Zy)Ú AsyncSearchcó*—eZdZdZ                        dd„Zd„Zy)úAsyncSearch.BatchIndexerrNc ‹ó&K—|jj|f|j||||||dœ|¤Ž|xjdz c_|xjdz c_|j|j
k\r|j «ƒd{–—†yy7Œ­wr'r/r1s             rr4z%AsyncSearch.BatchIndexer.add_document…sèø€ð &ˆDK‰K× %Ñ %Øð
à—^‘^ØØØØØØ#ñ
ðò
ð × Ò  !Ñ #Õ Ø JŠJ˜!‰OJØ×!Ñ! T§_¡_Ò4Ø—k‘k“m×#Ñ#ð5Ø#ús‚BBÂB    BcƒóbK—|jj«ƒd{–—†d|_y7Œ ­w)r9Nrr:r$s rr#zAsyncSearch.BatchIndexer.commit£s+èø€ð—.‘.×(Ñ(Ó*× *Ð *Ø!"ˆDÕ ð +ús ‚/ -¡ /r<)r>r?r@rAr4r#rBr!rrCrZs%„ñ     ðØØØØØó    $ó<    #r!rCNcó‚—t|jj|j||¬«}|j|_|SrP)Ú AsyncPipelinerrQrErFrSs    rrzAsyncSearch.pipelineªs<€ô Ø ŸK™K×7Ñ7Ø#×5Ñ5Ø#Ø!ô    
ˆð —‘ˆŒ ؈r!rV)r>r?r@rrCrrBr!rrXrX~s„ô)#v×*Ñ*ô)#ôV r!rXcó—eZdZdZy)rzPipeline for the module.N©r>r?r@rArBr!rrr¸s„Ú"r!rcó—eZdZdZy)r^zAsyncPipeline for the module.Nr`rBr!rr^r^¼s„Ú'r!r^N)Ú redis.clientrÚ RedisPipelineÚasyncio.clientÚAsyncioPipelineÚcommandsrrrr    r
r r r rrrXr^rBr!rú<module>rgsXðÝ2å9÷
÷
õ
ôjˆ^ôjôZ7&Ð-ô7ôt#ˆ~˜}ô#ô(Ð'¨¸(õ(r!