public class EsActionPack extends Object
com.cultofbits.integrationm.service.properties
file
with the elasticsearch
key;
for example:
action.names=...,<es-ap-name> action.<es-ap-name>=elasticsearch
Constructor and Description |
---|
EsActionPack(com.cultofbits.genesis.elasticsearch.IndexService indexService) |
Modifier and Type | Method and Description |
---|---|
boolean |
addOrUpdate(String index,
String docId,
Map<String,Object> fields)
Indexes a doc based on the contents of the passed Map.
|
boolean |
delete(String index,
String docId)
Delete an indexed document.
|
public EsActionPack(com.cultofbits.genesis.elasticsearch.IndexService indexService)
public boolean addOrUpdate(String index, String docId, Map<String,Object> fields)
index
- the ElasticSearch index to be useddocId
- the identifier of the indexed documentfields
- the map of fields of the document to indexCopyright © 2021 Cult Of Bits, lda