Class SolrTrashElementIndexer

java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.content.indexing.solr.SolrTrashElementIndexer
All Implemented Interfaces:
SolrFieldNames, LogEnabled, Component, Serviceable

Component for DefaultTrashElement indexing into a Solr server.
  • Field Details

    • ROLE

      public static final String ROLE
      The component role.
  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Throws:
      ServiceException
    • indexTrashElement

      public List<org.apache.solr.common.SolrInputDocument> indexTrashElement(DefaultTrashElement trashElement, org.apache.solr.common.SolrInputDocument document) throws Exception
      Populate a solr input document by adding fields to index into it.
      Parameters:
      trashElement - The trash element to index
      document - The main solr document to index into
      Returns:
      Additional documents generated during the indexing
      Throws:
      Exception - if an error occurred while indexing
    • _populateAdditionalData

      protected List<org.apache.solr.common.SolrInputDocument> _populateAdditionalData(DefaultTrashElement trashElement, org.apache.solr.common.SolrInputDocument document) throws Exception
      Populate the solr input document by adding fields to index.
      Parameters:
      trashElement - the trashElement to index.
      document - the solr input document
      Returns:
      Additional documents created by additional property indexers
      Throws:
      Exception - if something goes wrong when processing the indexation of the trash element