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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected Integerprotected IntegerFields inherited from class org.exoplatform.commons.search.index.IndexingServiceConnector
connectorName, enableFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedElasticIndexingServiceConnector(org.exoplatform.container.xml.InitParams initParams) -
Method Summary
Modifier and TypeMethodDescriptionTransform a list of entities to Document in order to be deleted from createDefault mapping rules for ES index This method must be overridden by your specific connector if you want to define special mappingbooleanbooleanvoidsetPreviousIndex(String previousIndex) voidsetReplicas(Integer replicas) voidMethods inherited from class org.exoplatform.commons.search.index.IndexingServiceConnector
create, getAllIds, getConnectorName, isEnable, setEnable, updateMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
indexAlias
-
currentIndex
-
previousIndex
-
previousIndices
-
mapping
-
reindexOnUpgrade
protected boolean reindexOnUpgrade -
shards
-
replicas
-
-
Constructor Details
-
ElasticIndexingServiceConnector
protected ElasticIndexingServiceConnector(org.exoplatform.container.xml.InitParams initParams)
-
-
Method Details
-
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
-
getPreviousIndex
-
setPreviousIndex
-
isReindexOnUpgrade
public boolean isReindexOnUpgrade() -
getIndexAlias
-
getShards
-
setShards
-
getReplicas
-
setReplicas
-
delete
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
-
getReindexPipelineName
-
getAttachmentProcessor
-