41 "desc":
"ElasticSearch document create API data provider",
42 "type":
"ElasticSearchDocumentCreateDataProvider",
44 "supports_request": True,
49 AbstractDataProvider::DataProviderSummaryInfoKeys
120 "desc":
"The name of the index to use",
123 "type": IntOrNothingType,
124 "desc":
"Only perform the operation if the document has this sequence number",
127 "type": IntOrNothingType,
128 "desc":
"Only perform the operation if the document has this primary term",
131 "type": StringOrNothingType,
132 "desc":
"Set to create to only index the document if it does not already exist (put if absent). If a "
133 "document with the specified `_id` already exists, the indexing operation will fail. Same as "
134 "using the `<index>/_create` endpoint. Valid values: `index`, `create`. If document id is "
135 "specified, it defaults to `index`. Otherwise, it defaults to `create`",
138 "type": StringOrNothingType,
139 "desc":
"ID of the pipeline to use to preprocess incoming documents. If the index has a default "
140 "ingest pipeline specified, then setting the value to _none disables the default ingest pipeline "
141 "for this request. If a final pipeline is configured it will always run, regardless of the value "
145 "type": StringOrNothingType,
146 "desc":
"If `true` (default: `false`), Elasticsearch refreshes the affected shards to make this operation visible to "
147 "search, if `wait_for` then wait for a refresh to make this operation visible to search, if "
148 "`false` do nothing with refreshes. Valid values: `true`, `false`, `wait_for`",
151 "type": StringOrNothingType,
152 "desc":
"Custom value used to route operations to a specific shard",
155 "type": StringOrNothingType,
156 "desc":
"Period to wait for a response (default: `1m`). If no response is received before the "
157 "timeout expires, the request fails and returns an error",
160 "type": IntOrNothingType,
161 "desc":
"Explicit version number for concurrency control. The specified version must match the "
162 "current version of the document for the request to succeed",
165 "type": StringOrNothingType,
166 "desc":
"Specific version type: `external`, `external_gte`",
168 "wait_for_active_shards": {
169 "type": StringOrNothingType,
170 "desc":
"The number of shard copies that must be active before proceeding with the operation "
171 "(default `1`). Set to `all` or any positive integer up to the total number of shards in the "
172 "index (number_of_replicas+1)",
176 "desc":
"If `true` (default `false`), the destination must be an index alias",
196 "desc":
"Indicates how many shard copies (primary and replica shards) the index operation should be "
201 "desc":
"Indicates the number of shard copies the index operation succeeded on. When the index "
202 "operation is successful, `successful` is at least 1.\n\n"
203 "Replica shards might not all be started when an indexing operation returns successfully; by "
204 "default, only the primary is required. Set `wait_for_active_shards` to change this default "
209 "desc":
"An array that contains replication-related errors in the case an index operation failed on "
210 "a replica shard. `0` indicates there were no failures.",
230 "desc":
"The name of the index the document was added to",
234 "desc":
"The unique identifier for the added document",
238 "desc":
"The document version. Incremented each time the document is updated",
242 "desc":
"The result of the indexing operation, `created` or `updated`",
246 "desc":
"Provides information about the replication process of the index operation",
250 "desc":
"The sequence number assigned to the document for the indexing operation. Sequence numbers "
251 "are used to ensure an older version of a document doesn’t overwrite a newer version",
255 "desc":
"The primary term assigned to the document for the indexing operation",
258 "type": StringOrNothingType,
259 "desc":
"The document type. Elasticsearch indices now support a single document type, `_doc`"
const ConstructorOptions
Constructor options.
Definition: ElasticSearchDataProvider.qc.dox.h:64
The ElasticSearch document create API data provider.
Definition: ElasticSearchDocumentCreateDataProvider.qc.dox.h:32
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
*string getDesc()
Returns the data provider description.
const ResponseType
Response type.
Definition: ElasticSearchDocumentCreateDataProvider.qc.dox.h:56
constructor(RestClient::RestClient rest)
Creates the object from a REST connection.
const RequestType
Request type.
Definition: ElasticSearchDocumentCreateDataProvider.qc.dox.h:53
const QueryArgs
Query args.
Definition: ElasticSearchDocumentCreateDataProvider.qc.dox.h:59
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
string getName()
Returns the data provider name.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
const ProviderInfo
Provider info.
Definition: ElasticSearchDocumentCreateDataProvider.qc.dox.h:39
RestClient::RestClient rest
REST client connection.
Definition: ElasticSearchDocumentCreateDataProvider.qc.dox.h:36
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
constructor(*hash< auto > options)
Creates the object from constructor options.
const ProviderSummaryInfo
Provider summary info.
Definition: ElasticSearchDocumentCreateDataProvider.qc.dox.h:48
Create document request data type.
Definition: ElasticSearchDocumentCreateDataProvider.qc.dox.h:111
const Fields
Field descriptions.
Definition: ElasticSearchDocumentCreateDataProvider.qc.dox.h:116
constructor()
Creates the object.
Document create API response.
Definition: ElasticSearchDocumentCreateDataProvider.qc.dox.h:222
constructor()
Creates the object.
const Fields
Field descriptions.
Definition: ElasticSearchDocumentCreateDataProvider.qc.dox.h:227
Shard data type.
Definition: ElasticSearchDocumentCreateDataProvider.qc.dox.h:188
constructor()
Creates the object.
const Fields
Field descriptions.
Definition: ElasticSearchDocumentCreateDataProvider.qc.dox.h:193
Boolean string type.
Definition: ElasticSearchDataProvider.qc.dox.h:140
Qore ElasticSearchDataProvider module definition.
Definition: ElasticSearchAcknowledgedDataType.qc.dox.h:26