39 "desc":
"ElasticSearch document read API data provider",
40 "type":
"ElasticSearchDocumentReadDataProvider",
42 "supports_request":
True,
47 AbstractDataProvider::DataProviderSummaryInfoKeys
118 "desc":
"The name of the index holding the document to read",
122 "desc":
"The ID of the document to read",
125 "type": StringOrNothingType,
126 "desc":
"Specifies the node or shard the operation should be performed on; random by default",
130 "desc":
"If `true` (the default), the request is real-time as opposed to near-real-time",
134 "desc":
"If `true` (default `false`), the request refreshes the relevant shard before retrieving the "
138 "type": StringOrNothingType,
139 "desc":
"Custom value used to route operations to a specific shard",
143 "desc":
"If `true` (default `false`), retrieves the document fields stored in the index rather than "
144 "the document `_source`",
147 "type": StringOrNothingType,
148 "desc":
"`true` or `false` to return the `_source` field or not, or a list of fields to return",
150 "_source_excludes": {
151 "type": StringOrNothingType,
152 "desc":
"A comma-separated list of source fields to exclude from the response.\n\n"
153 "You can also use this parameter to exclude fields from the subset specified in the "
154 "`_source_includes` query parameter.\n\n"
155 "If the `_source` parameter is `false`, this parameter is ignored",
157 "_source_includes": {
158 "type": StringOrNothingType,
159 "desc":
"A comma-separated list of source fields to include in the response.\n\n"
160 "If this parameter is specified, only these source fields are returned. You can exclude fields "
161 "from this subset using the `_source_excludes` query parameter.\n\n"
162 "If the `_source` parameter is `false`, this parameter is ignored",
165 "type": IntOrNothingType,
166 "desc":
"Explicit version number for concurrency control. The specified version must match the "
167 "current version of the document for the request to succeed",
170 "type": StringOrNothingType,
171 "desc":
"Specific version type: `external`, `external_gte`",
191 "desc":
"The name of the index the document was added to",
195 "desc":
"The unique identifier for the added document",
199 "desc":
"The document version. Incremented each time the document is updated",
203 "desc":
"Indicates whether the document exists: `true` or `false`",
206 "type": StringOrNothingType,
207 "desc":
"The explicit routing, if set",
210 "type": StringOrNothingType,
211 "desc":
"If `found` is `true`, contains the document data formatted in JSON. Excluded if the "
212 "`_source` parameter is set to `false` or the `stored_fields` parameter is set to `true`",
215 "type": StringOrNothingType,
216 "desc":
"If the `stored_fields` parameter is set to `true` and `found` is `true`, this will contain "
217 "the document fields stored in the index",
221 "desc":
"The sequence number assigned to the document for the indexing operation. Sequence numbers "
222 "are used to ensure an older version of a document doesn’t overwrite a newer version",
226 "desc":
"The primary term assigned to the document for the indexing operation",
const ConstructorOptions
Constructor options.
Definition: ElasticSearchDataProvider.qc.dox.h:64
The ElasticSearch document read API data provider.
Definition: ElasticSearchDocumentReadDataProvider.qc.dox.h:30
const ProviderSummaryInfo
Provider summary info.
Definition: ElasticSearchDocumentReadDataProvider.qc.dox.h:46
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
constructor(*hash< auto > options)
Creates the object from constructor options.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
string getName()
Returns the data provider name.
const ResponseType
Response type.
Definition: ElasticSearchDocumentReadDataProvider.qc.dox.h:54
const ProviderInfo
Provider info.
Definition: ElasticSearchDocumentReadDataProvider.qc.dox.h:37
const RequestType
Request type.
Definition: ElasticSearchDocumentReadDataProvider.qc.dox.h:51
const QueryArgs
Query args.
Definition: ElasticSearchDocumentReadDataProvider.qc.dox.h:57
constructor(RestClient::RestClient rest)
Creates the object from a REST connection.
*string getDesc()
Returns the data provider description.
RestClient::RestClient rest
REST client connection.
Definition: ElasticSearchDocumentReadDataProvider.qc.dox.h:34
Document read API request data type.
Definition: ElasticSearchDocumentReadDataProvider.qc.dox.h:109
constructor()
Creates the object.
const Fields
Field descriptions.
Definition: ElasticSearchDocumentReadDataProvider.qc.dox.h:114
Document read API response.
Definition: ElasticSearchDocumentReadDataProvider.qc.dox.h:183
constructor()
Creates the object.
const Fields
Field descriptions.
Definition: ElasticSearchDocumentReadDataProvider.qc.dox.h:188
Qore ElasticSearchDataProvider module definition.
Definition: ElasticSearchAcknowledgedDataType.qc.dox.h:26
const SoftBoolStringType
Boolean string type for query parameters.
Definition: ElasticSearchDataProvider.qc.dox.h:134