public class ElasticIndexingClient extends ElasticClient
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_JSON |
client, urlClient| Constructor and Description |
|---|
ElasticIndexingClient(ElasticIndexingAuditTrail auditTrail) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.conn.HttpClientConnectionManager |
getClientConnectionManager() |
protected String |
getEsPasswordProperty() |
protected String |
getEsUsernameProperty() |
void |
sendCreateIndexRequest(String index,
String settings)
Send request to ES to create a new index
|
void |
sendCreateTypeRequest(String index,
String type,
String mappings)
Send request to ES to create a new type
|
void |
sendCUDRequest(String bulkRequest)
Send request to ES to perform a C-reate, U-pdate or D-elete operation on a
ES document
|
void |
sendDeleteAllDocsOfTypeRequest(String index,
String type)
Send request to ES to delete all documents of the given type
|
sendHttpDeleteRequest, sendHttpGetRequest, sendHttpPostRequestpublic static final String EMPTY_JSON
public ElasticIndexingClient(ElasticIndexingAuditTrail auditTrail)
public void sendCreateIndexRequest(String index, String settings)
public void sendCreateTypeRequest(String index, String type, String mappings)
public void sendDeleteAllDocsOfTypeRequest(String index, String type)
public void sendCUDRequest(String bulkRequest)
bulkRequest - JSON containing C-reate, U-pdate or D-elete operationprotected String getEsUsernameProperty()
getEsUsernameProperty in class ElasticClientprotected String getEsPasswordProperty()
getEsPasswordProperty in class ElasticClientprotected org.apache.http.conn.HttpClientConnectionManager getClientConnectionManager()
getClientConnectionManager in class ElasticClientCopyright © 2003–2018 eXo Platform SAS. All rights reserved.