Class IndexingServiceConnector

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.search.index.IndexingServiceConnector
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
Direct Known Subclasses:
ElasticIndexingServiceConnector

public abstract class IndexingServiceConnector extends org.exoplatform.container.component.BaseComponentPlugin
  • Field Details

    • connectorName

      protected String connectorName
    • enable

      protected boolean enable
  • Constructor Details

    • IndexingServiceConnector

      public IndexingServiceConnector()
  • Method Details

    • create

      public abstract Document create(String id)
      Transform an entity to Document in order to be indexed
      Parameters:
      id - Id of entity to create
      Returns:
      List of Document to create
      eXo level API
      Experimental
    • update

      public abstract Document update(String id)
      Transform an entity to Document in order to be reindexed
      Parameters:
      id - Id of entity to reindex
      Returns:
      List of Document to reindex
      eXo level API
      Experimental
    • delete

      public abstract String delete(String id)
      Transform a list of entities to Document in order to be deleted from create
      Parameters:
      id - Ids of entities to delete from
      Returns:
      List of Ids to delete from create
      eXo level API
      Experimental
    • getAllIds

      public abstract List<String> getAllIds(int offset, int limit)
    • getConnectorName

      public abstract String getConnectorName()
    • isEnable

      public boolean isEnable()
    • setEnable

      public void setEnable(boolean enable)