|
| constructor (RestClient::RestClient rest, string name, hash< auto > index) |
| Creates the object from a REST connection.
|
|
*string | getDesc () |
| Returns the data provider description.
|
|
string | getName () |
| Returns the data provider name.
|
|
hash< DataProvider::DataProviderInfo > | getStaticInfoImpl () |
| Returns data provider static info.
|
|
DataProvider::AbstractDataProviderType | getTypeForProperty (string name, hash< auto > prop) |
| Returns a data type for a property.
|
|
| constructor () |
| Creates the object.
|
|
| constructor (RestClient rest) |
| Creates the object from a REST connection.
|
|
| setLogger (*LoggerInterface logger) |
| Accepts a LoggerInterface object for logging (or clears it)
|
|
|
*hash< auto > | createRecordImpl (hash< auto > rec, *hash< auto > create_options) |
| Writes the given record to the data provider.
|
|
int | deleteRecordsImpl (*hash< auto > where_cond, *hash< auto > search_options) |
|
string | getDocUriPath (string uri_str, *hash< auto > where_cond, string action, *hash< auto > search_options, *list< string > query_args) |
| Makes sure that the where_cond is only the _id field.
|
|
| getRecordInfoIntern () |
| Retrieves the record type.
|
|
DataProvider::AbstractDataProviderRecordIterator | searchRecordsImpl (*hash< auto > where_cond, *hash< auto > search_options) |
| Returns an iterator for zero or more records matching the search options.
|
|
int | updateRecordsImpl (hash< auto > set, *hash< auto > where_cond, *hash< auto > search_options) |
| Updates a single document in the index.
|
|
This class exposes ElasticSearch indices as record-based data providers.
The record type is made up of the document attributes plus the following read-only fields:
_id:
the document ID which functions as the data provider record ID
_score:
the score returned from searches
Note that "where hashes" for updates and deletes accept a single field, _id
, to identify the single document (data provider record) to be updated or deleted.
Searches are performed with match
logic; for more flexible searching, use the index search API data provider found at index/search