-
Notifications
You must be signed in to change notification settings - Fork 234
/
azure.search.documents.SearchIndexingBufferedSender.yml
178 lines (165 loc) · 5.98 KB
/
azure.search.documents.SearchIndexingBufferedSender.yml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
### YamlMime:PythonClass
uid: azure.search.documents.SearchIndexingBufferedSender
name: SearchIndexingBufferedSender
fullName: azure.search.documents.SearchIndexingBufferedSender
module: azure.search.documents
inheritances:
- azure.search.documents._search_indexing_buffered_sender_base.SearchIndexingBufferedSenderBase
- azure.search.documents._headers_mixin.HeadersMixin
summary: A buffered sender for document indexing actions.
constructor:
syntax: 'SearchIndexingBufferedSender(endpoint: str, index_name: str, credential:
AzureKeyCredential | TokenCredential, **kwargs: Any)'
parameters:
- name: endpoint
description: The URL endpoint of an Azure search service
isRequired: true
types:
- <xref:str>
- name: index_name
description: The name of the index to connect to
isRequired: true
types:
- <xref:str>
- name: credential
description: A credential to authorize search client requests
isRequired: true
types:
- <xref:azure.core.credentials.AzureKeyCredential>
- <xref:azure.core.credentials.TokenCredential>
keywordOnlyParameters:
- name: auto_flush_interval
description: 'how many max seconds if between 2 flushes. This only takes effect
when auto_flush is on. Default to 60 seconds.'
types:
- <xref:int>
- name: initial_batch_action_count
description: 'The initial number of actions to group into a batch when
tuning the behavior of the sender. The default value is 512.'
types:
- <xref:int>
- name: max_retries_per_action
description: The number of times to retry a failed document. The default value
is 3.
types:
- <xref:int>
- name: on_new
description: 'If it is set, the client will call corresponding methods when there
is a new IndexAction added. This may be called from main thread or a worker
thread.'
types:
- <xref:callable>
- name: on_progress
description: 'If it is set, the client will call corresponding methods when there
is a IndexAction succeeds. This may be called from main thread or a worker thread.'
types:
- <xref:callable>
- name: on_error
description: 'If it is set, the client will call corresponding methods when there
is a IndexAction fails. This may be called from main thread or a worker thread.'
types:
- <xref:callable>
- name: on_remove
description: 'If it is set, the client will call corresponding methods when there
is a IndexAction removed from the queue (succeeds or fails). This may be called
from main
thread or a worker thread.'
types:
- <xref:callable>
- name: api_version
description: The Search API version to use for requests.
types:
- <xref:str>
- name: audience
description: 'sets the Audience to use for authentication with Azure Active Directory
(AAD). The
audience is not considered when using a shared key. If audience is not provided,
the public cloud audience
will be assumed.'
types:
- <xref:str>
methods:
- uid: azure.search.documents.SearchIndexingBufferedSender.close
name: close
summary: 'Close the session.
:return: None
:rtype: None'
signature: close(**kwargs) -> None
- uid: azure.search.documents.SearchIndexingBufferedSender.delete_documents
name: delete_documents
summary: Queue delete documents actions
signature: 'delete_documents(documents: List[Dict], **kwargs) -> None'
parameters:
- name: documents
description: A list of documents to delete.
isRequired: true
types:
- <xref:list>[<xref:dict>]
- uid: azure.search.documents.SearchIndexingBufferedSender.flush
name: flush
summary: Flush the batch.
signature: 'flush(timeout: int = 86400, **kwargs: Any) -> bool'
parameters:
- name: timeout
description: time out setting. Default is 86400s (one day)
isRequired: true
types:
- <xref:int>
return:
description: True if there are errors. Else False
types:
- <xref:bool>
exceptions:
- type: azure.core.exceptions.ServiceResponseTimeoutError
- uid: azure.search.documents.SearchIndexingBufferedSender.index_documents
name: index_documents
summary: 'Specify a document operations to perform as a batch.
:raises ~azure.search.documents.RequestEntityTooLargeError'
signature: 'index_documents(batch: IndexDocumentsBatch, **kwargs) -> List[IndexingResult]'
parameters:
- name: batch
description: A batch of document operations to perform.
isRequired: true
types:
- <xref:azure.search.documents.IndexDocumentsBatch>
return:
description: Indexing result of each action in the batch.
types:
- <xref:list>[<xref:azure.search.documents.models.IndexingResult>]
- uid: azure.search.documents.SearchIndexingBufferedSender.merge_documents
name: merge_documents
summary: Queue merge documents actions
signature: 'merge_documents(documents: List[Dict], **kwargs) -> None'
parameters:
- name: documents
description: A list of documents to merge.
isRequired: true
types:
- <xref:list>[<xref:dict>]
- uid: azure.search.documents.SearchIndexingBufferedSender.merge_or_upload_documents
name: merge_or_upload_documents
summary: Queue merge documents or upload documents actions
signature: 'merge_or_upload_documents(documents: List[Dict], **kwargs) -> None'
parameters:
- name: documents
description: A list of documents to merge or upload.
isRequired: true
types:
- <xref:list>[<xref:dict>]
- uid: azure.search.documents.SearchIndexingBufferedSender.upload_documents
name: upload_documents
summary: Queue upload documents actions.
signature: 'upload_documents(documents: List[Dict], **kwargs) -> None'
parameters:
- name: documents
description: A list of documents to upload.
isRequired: true
types:
- <xref:list>[<xref:dict>]
attributes:
- uid: azure.search.documents.SearchIndexingBufferedSender.actions
name: actions
summary: The list of currently index actions in queue to index.
return:
types:
- <xref:list>[<xref:azure.search.documents.models.IndexAction>]