Class ElasticIndexingServiceConnector
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.commons.search.index.IndexingServiceConnector
-
- org.exoplatform.commons.search.index.impl.ElasticIndexingServiceConnector
-
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public abstract class ElasticIndexingServiceConnector extends IndexingServiceConnector
Created by The eXo Platform SAS Author : Thibault Clement tclement@exoplatform.com 7/22/15
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcurrentIndexprotected StringindexAliasprotected Stringmappingprotected Integerreplicasprotected Integershards-
Fields inherited from class org.exoplatform.commons.search.index.IndexingServiceConnector
connectorName, enable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedElasticIndexingServiceConnector(org.exoplatform.container.xml.InitParams initParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdelete(String id)Transform a list of entities to Document in order to be deleted from createStringgetAttachmentProcessor()StringgetCurrentIndex()StringgetIndexAlias()StringgetMapping()Default mapping rules for ES index This method must be overridden by your specific connector if you want to define special mappingStringgetPipelineName()IntegergetReplicas()IntegergetShards()booleanisNeedIngestPipeline()voidsetReplicas(Integer replicas)voidsetShards(Integer shards)-
Methods inherited from class org.exoplatform.commons.search.index.IndexingServiceConnector
create, getAllIds, getConnectorName, isEnable, setEnable, update
-
-
-
-
Method Detail
-
getMapping
public String getMapping()
Default mapping rules for ES index This method must be overridden by your specific connector if you want to define special mapping- Returns:
- JSON containing a mapping to create new index
-
getCurrentIndex
public String getCurrentIndex()
-
getIndexAlias
public String getIndexAlias()
-
getShards
public Integer getShards()
-
setShards
public void setShards(Integer shards)
-
getReplicas
public Integer getReplicas()
-
setReplicas
public void setReplicas(Integer replicas)
-
delete
public String delete(String id)
Description copied from class:IndexingServiceConnectorTransform a list of entities to Document in order to be deleted from create- Specified by:
deletein classIndexingServiceConnector- Parameters:
id- Ids of entities to delete from- Returns:
- List of Ids to delete from create
-
isNeedIngestPipeline
public boolean isNeedIngestPipeline()
-
getPipelineName
public String getPipelineName()
-
getAttachmentProcessor
public String getAttachmentProcessor()
-
-