39 "desc":
"ElasticSearch index create API data provider",
40 "type":
"ElasticSearchIndexCreateDataProvider",
42 "supports_request": True,
47 AbstractDataProvider::DataProviderSummaryInfoKeys
57 const QueryArgs = (
"wait_for_active_shards",
"master_timeout",
"timeout");
125 "desc":
"The name of the index to create",
127 "wait_for_active_shards": {
128 "type": SoftStringOrNothingType,
129 "desc":
"The number of shard copies that must be active before proceeding with the operation. "
130 "Set to `all` or any positive integer up to the total number of shards in the "
131 "index (number_of_replicas+1). Default: `1`, the primary shard.",
134 "type": StringOrNothingType,
135 "desc":
"Period to wait for a connection to the master node (default `30s`). If no response is "
136 "received before the timeout expires, the request fails and returns an error",
139 "type": StringOrNothingType,
140 "desc":
"Period to wait for a response (default `30s`). If no response is received before the "
141 "timeout expires, the request fails and returns an error",
147 "desc":
"The key is the alias name. Index alias names support date math",
150 "type": AutoHashOrNothingType,
151 "desc":
"Mapping for fields in the index. If specified, this mapping can include:\n"
153 "- Field data types\n"
154 "- Mapping parameters",
157 "type": AutoHashOrNothingType,
158 "desc":
"Configuration options for the index",
176 "shards_acknowledged": {
178 "desc":
"Indicates whether the requisite number of shard copies were started for each shard in the "
179 "index before timing out",
183 "desc":
"The name of the index created",
The acknowledged response type.
Definition: ElasticSearchAcknowledgedDataType.qc.dox.h:28
const ConstructorOptions
Constructor options.
Definition: ElasticSearchDataProvider.qc.dox.h:64
Aliases data type.
Definition: ElasticSearchIndexCreateDataProvider.qc.dox.h:108
The ElasticSearch index create API data provider.
Definition: ElasticSearchIndexCreateDataProvider.qc.dox.h:30
const ProviderSummaryInfo
Provider summary info.
Definition: ElasticSearchIndexCreateDataProvider.qc.dox.h:46
constructor(RestClient::RestClient rest)
Creates the object from a REST connection.
const ResponseType
Response type.
Definition: ElasticSearchIndexCreateDataProvider.qc.dox.h:54
const RequestType
Request type.
Definition: ElasticSearchIndexCreateDataProvider.qc.dox.h:51
string getName()
Returns the data provider name.
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
constructor(*hash< auto > options)
Creates the object from constructor options.
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
const QueryArgs
Query args.
Definition: ElasticSearchIndexCreateDataProvider.qc.dox.h:57
*string getDesc()
Returns the data provider description.
const ProviderInfo
Provider info.
Definition: ElasticSearchIndexCreateDataProvider.qc.dox.h:37
RestClient::RestClient rest
REST client connection.
Definition: ElasticSearchIndexCreateDataProvider.qc.dox.h:34
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
Create index request data type.
Definition: ElasticSearchIndexCreateDataProvider.qc.dox.h:116
constructor()
Creates the object.
const Fields
Field descriptions.
Definition: ElasticSearchIndexCreateDataProvider.qc.dox.h:121
Index create API response.
Definition: ElasticSearchIndexCreateDataProvider.qc.dox.h:170
constructor()
Creates the object.
const Fields
Field descriptions.
Definition: ElasticSearchIndexCreateDataProvider.qc.dox.h:175
Base data type for search request types.
Definition: ElasticSearchIndexDataTypeBase.qc.dox.h:28
Qore ElasticSearchDataProvider module definition.
Definition: ElasticSearchAcknowledgedDataType.qc.dox.h:26