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
  • Field Details

    • indexAlias

      protected String indexAlias
    • currentIndex

      protected String currentIndex
    • previousIndex

      protected String previousIndex
    • previousIndices

      protected List<String> previousIndices
    • mapping

      protected String mapping
    • reindexOnUpgrade

      protected boolean reindexOnUpgrade
    • shards

      protected Integer shards
    • replicas

      protected Integer replicas
  • Constructor Details

    • ElasticIndexingServiceConnector

      protected ElasticIndexingServiceConnector(org.exoplatform.container.xml.InitParams initParams)
  • Method Details

    • 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()
    • getPreviousIndex

      public String getPreviousIndex()
    • setPreviousIndex

      public void setPreviousIndex(String previousIndex)
    • isReindexOnUpgrade

      public boolean isReindexOnUpgrade()
    • 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: IndexingServiceConnector
      Transform a list of entities to Document in order to be deleted from create
      Specified by:
      delete in class IndexingServiceConnector
      Parameters:
      id - Ids of entities to delete from
      Returns:
      List of Ids to delete from create
    • isNeedIngestPipeline

      public boolean isNeedIngestPipeline()
    • getPipelineName

      public String getPipelineName()
    • getReindexPipelineName

      public String getReindexPipelineName()
    • getAttachmentProcessor

      public String getAttachmentProcessor()