REST client for Elasticsearch. Note that all methods are synchronous. The client is expected to be used in server solutions. Each document is identified by the tuple.
Bulk inserts multiple documents. IdsAndDocuments is a list (or array) with pairs of ids and documents. Pass empty strings as the ids to let Elasticsearch create the ids. Example: client.BulkInsert("index1", "type1", Array("id1", CreateMap("text": "doc1"), "id2", CreateMap("text": "doc2"))
Checks whether a document with the given Index, Type and Id exists.
Get (IndexAsString, TypeAsString, IdAsString) AsMap
Returns the document. An exception will be thrown if there is no such document.
Initialize (EventNameAsString, HostsAsList)
Initializes the client and sets the list of hosts. EventName - Currently there are no events. Hosts - A list or array with one or more hosts. Example: esclient.Initialize("", Array("127.0.0.1:9200"))
Performs a raw request. Method - Request method (GET, POST, ...) EndPoint - Request end point. QueryParameters - Map of query parameters. Pass Null if not required. Payload - Body payload. Pass an empty string if not required.