public abstract class ElasticIndexingServiceConnector extends IndexingServiceConnector
| Modifier and Type | Field and Description |
|---|---|
protected String |
currentIndex |
protected String |
indexAlias |
protected String |
previousIndex |
protected boolean |
reindexOnUpgrade |
protected Integer |
replicas |
protected Integer |
shards |
| Constructor and Description |
|---|
ElasticIndexingServiceConnector(org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
String |
delete(String id)
Transform a list of entities to Document in order to be deleted from create
|
String |
getAttachmentProcessor() |
String |
getCurrentIndex() |
String |
getIndex() |
String |
getMapping()
Default mapping rules for ES type
{
"type_name" : {
"properties" : {
"permissions" : {"type" : "keyword"},
"sites" : {"type" : "keyword"}
}
}
}
This method must be overridden by your specific connector if you want to define special mapping
|
String |
getPipelineName() |
String |
getPreviousIndex() |
Integer |
getReplicas() |
Integer |
getShards() |
boolean |
isNeedIngestPipeline() |
boolean |
isReindexOnUpgrade() |
void |
setIndex(String index) |
void |
setPreviousIndex(String previousIndex) |
void |
setReplicas(Integer replicas) |
void |
setShards(Integer shards) |
create, getAllIds, getType, isEnable, setEnable, setType, updateprotected String indexAlias
protected String currentIndex
protected String previousIndex
protected boolean reindexOnUpgrade
protected Integer shards
protected Integer replicas
public ElasticIndexingServiceConnector(org.exoplatform.container.xml.InitParams initParams)
public String getMapping()
public String getIndex()
public void setIndex(String index)
public String getCurrentIndex()
public String getPreviousIndex()
public void setPreviousIndex(String previousIndex)
public boolean isReindexOnUpgrade()
public Integer getShards()
public void setShards(Integer shards)
public Integer getReplicas()
public void setReplicas(Integer replicas)
public String delete(String id)
IndexingServiceConnectordelete in class IndexingServiceConnectorid - Ids of entities to delete frompublic boolean isNeedIngestPipeline()
public String getPipelineName()
public String getAttachmentProcessor()
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.